Change animation body position and orientation
move(h, translation, rotation)
h.move(translation,rotation)
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
).
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);