DistanceXYZ

HC Graphics Turtle Motion Queries DistanceXYZ
Distance Pixel

dist DistanceXYZ pos


Outputs a number, the distance the turtle must travel along a straight line to reach the xyz position given as the argument.

This command is designed to run in perspective mode.

Example:

show towardsxyz [0 100 0]		;100
show towardsxyz [100 100 100]		;173.205080756888
setorientation towardsxyz [100 100 100]
fd distancexyz [100 100 100]

Example:

References:

Distance Pixel