inconsistency with scenegraph numbers
by Joseph Bosch · in Torque 2D Professional · 12/30/2013 (1:27 pm) · 0 replies
I am using the right down mouse button to get the world position a player clicked on and it is returned as something like this. 79.016723 however, the actual position of objects within my scene graph appear to only be saved to three positions IE 150.000 even when say adding or subtracting odd values to this (IE say 1.94891 (the speed in this case)) means that every time the object moves it will be 0.00091 of where it should be.
is there away to cast the position of scene objects to be more then three decimal places so that it does not mess up math along the way?
Edit:
looking at this further even if i could cast the position to more decimal places the speed still gets rounded off in the engine someplace. May have look at a different way to move the object.
is there away to cast the position of scene objects to be more then three decimal places so that it does not mess up math along the way?
Edit:
looking at this further even if i could cast the position to more decimal places the speed still gets rounded off in the engine someplace. May have look at a different way to move the object.