Main Content

move

Class: Aero.Body
Namespace: Aero

Change animation body position and orientation

Syntax

move(h,translation,rotation)

Description

move(h,translation,rotation) sets a new position and orientation for the body object h.

Input Arguments

expand all

Aerospace body object, specified as an Aero.Body object.

Translation matrix in the aerospace body x-y-z coordinate system, specified as a 1-by-3 matrix.

Example:

Data Types: double

Body rotation, specified is a 1-by-3 matrix, in radians, that specifies the rotations about the right-hand x-y-z coordinate axes. The order of application of the rotation is z-y-x (yaw, pitch, and roll (Y-P-R)).

Data Types: double

Examples

expand all

Change the animation body position to newpos and newrot.

h = Aero.Body;
h.load('ac3d_xyzisrgb.ac','Ac3d');
newpos = h.Position + 1.00;
newrot = h.Rotation + 0.01;
h.move(newpos,newrot);

Version History

Introduced in R2007a

See Also

Classes

Functions