Help Contents / Graphics / Turtle Motion Queries / towardsXYZ

towardsXYZorientationList towardsXYZ pos 

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 pos given as the [x y z] argument. 

It is important to Understand your Orientation in 3D. 

This command is designed to run in perspective mode. 

Example: 

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


previous: towards	next: Distance
