| Aerospace Toolbox | ![]() |
h = Aero.Animation
h = Aero.Animation constructs an animation object. The animation object is returned to h.
Note The Aero.Animation constructor does not retain the properties of previously created animation objects, even those that you have saved to a MAT-file. This means that subsequent calls to the animation object constructor always create animation objects with default properties. |
The animation object has the following methods and properties:
| Constructor | Description |
|---|---|
| Animation | Construct animation object. |
| Method | Description |
|---|---|
| addBody | Add loaded body to animation object and generate its patches. |
| createBody | Create body and its associated patches in animation. |
| delete | Destruct animation object. |
| hide | Hide animation figure. |
| initialize | Create animation figure and axes and build patches for bodies. |
| initIfNeeded | Initialize animation graphics if needed. |
| moveBody | Set new position and attitude of body in animation. |
| play | Animate loaded geometry for given position and angle in time series data. |
| removeBody | Remove one body from animation. |
| show | Show animation figure. |
| updateBodies | Set new position and attitude of movable items in animation. |
| updateCamera | Update camera in animation object. |
| Property | Description | Values |
|---|---|---|
| Name | Specify name of the animation object. | string |
| Figure | Specify name of the figure object. | MATLAB array |
| FigureCustomizationFcn | Specify figure customization function. | MATLAB array |
| Bodies | Specify the bodies that the animation object contains. | MATLAB array |
| Camera | Specify the camera that the animation object contains. | handle |
| TimeScaling | Specify the time, in seconds. | double |
| TStart | Specify start time. | double |
| TFinal | Specify end time. | double |
| TCurrent | Specify current time. | double |
| FramesPerSecond | Specify rate in frames per second. | MATLAB array |
![]() | Object Reference | Aero.Body | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |