Coordinate Systems in Simulink 3D Animation
R2026bSimulink® 3D Animation™ provides different coordinate systems to define actor transformation in the 3D environment. The product allows you to set the coordinate system for each actor in the 3D environment.
To set the coordinate system of the actor, use the
CoordinateSystemargument or property in thesim3dactor objects or the Coordinate system parameter in the Simulation 3D blocks.To specify the position of the actor in the 3D environment relative to the parent actor, use the
Translationargument or property in thesim3dactor objects or the Translation parameter in the Simulation 3D blocks.To specify the orientation of the actor in the 3D environment relative to the parent actor, use the
Rotationargument or property in thesim3dactor objects or the Rotation parameter in the Simulation 3D blocks. The rotation order is roll, then pitch, then yaw. When you update any of the three rotation values and leave others unchanged, the software reapplies all three rotations in the same order.
The table describes the different coordinate systems.
| Coordinate System | Object or Block Setting | Description | |
|---|---|---|---|
| Simulink 3D Animation coordinate system | Default | The Simulink 3D Animation coordinate system uses the Unreal Engine® coordinate system. The Unreal Engine coordinate system is a left-handed Cartesian coordinate system, in m and rad. Axes:
Rotation:
| |
| MATLAB® coordinate system | MATLAB | The MATLAB coordinate system is a right-handed Cartesian coordinate system with Z-up orientation, in m and rad. Axes:
Rotation:
| |
| ISO 8855 standard coordinate system | ISO8855 | The ISO 8855 [2] standard coordinate system is a right-handed Cartesian coordinate system with Z-up orientation, in m and deg. Axes:
Rotation:
| |
| X3D ISO standard coordinate system | VRML | The X3D ISO standard coordinate system is a right-handed Cartesian coordinate system with Y-up orientation, in m and rad. Axes:
Rotation:
| |
| SAE coordinate system | SAE or AERO | The SAE J670 standard coordinate system is a right-handed Cartesian coordinate system with Z-down orientation, in m and rad. The Vehicle Dynamics Blockset™ 3D simulation environment uses this coordinate system defined in the SAE J670[1] standard. For more information, see Vehicle Coordinate System (Vehicle Dynamics Blockset). This coordinate system is also used for aerospace applications. For more information, see Body Coordinates (Aerospace Blockset). Axes:
Rotation:
| |
For an example on how the coordinate system specifies the actor transformations in the 3D environment, see View Actor Orientation in MATLAB Coordinate System.
References
[1] Vehicle Dynamics Standards Committee. Vehicle Dynamics Terminology. SAE J670. Warrendale, PA: Society of Automotive Engineers, 2008.
[2] Technical Committee. Road vehicles — Vehicle Dynamics and Road-Holding Ability — Vocabulary. ISO 8855:2011. Geneva, Switzerland: International Organization for Standardization, 2011.
See Also
Topics
- View Actor Orientation in MATLAB Coordinate System
- Actor Transformations in Simulink 3D Animation
- Coordinate Systems for Display (Aerospace Blockset)
- Coordinate Systems in Vehicle Dynamics Blockset (Vehicle Dynamics Blockset)
- Create 3D Simulations in Unreal Engine Environment
- Interact with Unreal Engine Simulation Environment