intrinsic-188 Get3DObjPosRot

Top  Previous  Next

188: Get3DObjPosRot(Handle, @X, @Y, @Z, @Pitch, @Yaw, @Roll);

 

This intrinsic returns the position and rotation of the specified object.

 

Arguments:

 

Handle. This argument is an integer handle created by the Add3DObject intrinsic. The handle can be for any type of 3D object.

 

X, Y, Z. These three real values return the 3D position of the object. Since this result is returned by reference, you must pass a pointer to the intrinsic by using the "@" operator. For example:

 

Get3DObjPosRot(WrkMesh, @X, @Y, @Z, @Pitch, @Yaw, @Roll);

 

Pitch, Yaw, Roll. These three real values return the 3D rotation of the object. Since this result is returned by reference, you must pass a pointer to the intrinsic by using the "@" operator as illustrated in the example above.