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
load
 | mjuliandate | | move (Aero.Node) |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit