Create six-degrees-of-freedom multibody custom geometry block
Aerospace Blockset / Animation / MATLAB-Based Animation
The MATLAB Animation block creates a six-degrees-of-freedom multibody custom
geometry block based on the Aero.Animation
object. This block
animates one or more vehicle geometries with x-y-z
position
and Euler angles through the specified bounding box, camera offset, and field of view.
This block expects the rotation order z-y-x
(psi, theta,
phi).
To update the camera parameters in the animation, first set the parameters then close and double-click the block to reopen the MATLAB® Animation window.
To access the parameters for this block, do one of:
Right-click the block, then select Mask > Mask Parameters.
Double-click the block to display the MATLAB Animation window, then click the Block Parameters icon.
The underlying graphics system stores values in single precision.
As a result, you might notice that motion at coordinate positions
greater than approximately 1e6 appear unstable. This is because a
single-precision number has approximately six digits of precision.
The instability is due to quantization at the local value of the eps
MATLAB function. To visualize more stable motion for coordinates beyond 1e6, either offset the input data to a local zero, or scale down the coordinate values feeding the visualization.