The unit used by UrhoSharp

I cannot figure out what unit is used by Vector3. For example, what exactly does "5" mean in the following sample code? Apparently the unit is not screen pixel, but then what?
Node boxNode = scene.CreateChild();
boxNode.Position = new Vector3(0, 0, 5);

Best Answer


  • IanThompsonIanThompson GBMember

    The "5", in this case, is a float that represent a coordinate in 3D space, ie. the Z coordinate of the boxNode. Lookup "3D Vector Maths" in Google for more info.

  • VincentwxVincentwx CAMember ✭✭

    @IanThompson , what I mean is how this coordinate will be mapped to a location on the screen. I tried it in Urho3d Editor,
    let's see I put a box at Vector(0,0,0), when I changed the location to (1,0,0), only 1 unit change on x axis, the component moved a lot on the screen.

  • VincentwxVincentwx CAMember ✭✭

    @IanThompson thanks. Will try and play more.

Sign In or Register to comment.