How to manage mesh movements
- Last UpdatedFeb 21, 2024
- 1 minute read
Many fields can help compose the movement of a mesh, which allows a lot of flexibility.
Rotation matrix
The rotation matrix defines how to apply transformations.
|
Value |
Description |
|---|---|
|
old |
Transformations are not to be explicitly set. Used for retro-compatibility. |
|
start |
Transformations are applied with reference to initial mesh position. |
|
local |
Transformations are absolute. |
Matrix operation sequence
The matrix operation sequence is the sequence of transformation operations done by the engine to position the mesh.
-
The starting point depends on the rotationMatrix value.
-
The sequence is used by the start and local options of rotationMatrix.
-
The old option uses a different and discontinued approach.
-
All operations are composed according to their order.
-
Not all of these fields require values. Sometimes, values for position and rotation are enough.
Sequence
-
scale
-
-center
-
yaw (0,1,0)
-
pitch (1,0,0)
-
orientation
-
orientation_offset
-
(if useCameraYaw) set yaw to align to camera-mesh vector
-
+center
-
position
-
position_offset
-
matrix
-
matrix_offset