TOWARDSXYZ

Synopsis
TOWARDSXYZ position
Description

Outputs a list, containing [roll pitch heading] at which the turtle should be oriented so that it would point from its current position to the position given. The position must be given as a three item list containing the X, Y, and Z coordinates of the position to face. It is important to understand your orientation in 3D.

TOWARDSXYZ is designed to run in PERSPECTIVE mode.

Example
PERSPECTIVE
SETPOS [0 0 0]
SHOW TOWARDSXYZ [100 100 0]
[0 0 45]
SETORIENTATION TOWARDSXYZ [100 100 100]
FORWARD DISTANCEXYZ [100 100 100]

SourceForge.net Logo