Accuracy of Coordinate Functions?

Discussion on a variety of topics. Ask general Vtank questions here.
bradacc
Posts: 128

Accuracy of Coordinate Functions?

Post #1 »

Tried wobjectgetphysicscoordinates[] and getplayercoordinates[] with both returning single decimal place results;

[VTank] MExec evaluating expression: "wobjectgetphysicscoordinates[wobjectgetselection[]]"
[VTank] Result: 33.6N, 56.7E

Are the actual coordinates stored to a higher precision, but truncated for display, and if so, to how many places? If not, does a different function get me more accurate results?

User avatar
Trigger9008
Posts: 41

Post #2 »

22:41:19 [VTank] MExec evaluating expression:
"coordinatedistancewithz[getplayercoordinates[],wobjectgetphysicscoordinates[wobjectgetselection[]]]"
22:41:19 [VTank] Result: 2.30545719830851

Does this help? I used my player and his distance to the corpse of a mob he killed. So the corpse is right in front of me. 2.305 yatta yatta meters... real short distance. 14 decimal places is much more precision than you'll ever need. So yes it is truncated for display.
~Trigger9008~