Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

move (Aero.Body)

Change animation body position and orientation

Syntax

move(h, translation, rotation)
h.move(translation,rotation)

Description

move(h, translation, rotation) and h.move(translation,rotation) set a new position and orientation for the body object h. translation is a 1-by-3 matrix in the aerospace body x-y-z coordinate system. rotation is a 1-by-3 matrix, in radians, that specifies the rotations about the right-hand x-y-z sequence of coordinate axes. The order of application of the rotation is z-y-x (r-q-p).

Examples

Change 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);

See Also

Introduced in R2007a

Was this topic helpful?