Gets the calculated motion from the animation graph since the last frame. This property provides the Transform
that represents the root motion, which is the movement of the root bone of the model as determined by the animation system.
Gets the calculated motion from the animation graph since the last frame. This property provides the Transform
that represents the root motion, which is the movement of the root bone of the model as determined by the animation system.
Use the RootMotion
property to retrieve the root motion transform of a SceneModel
object. This can be useful for applying the calculated motion to the model's position or for other purposes such as physics calculations.
// Example of accessing the RootMotion property SceneModel myModel = new SceneModel(); Transform rootMotionTransform = myModel.RootMotion; // Use the root motion transform Vector3 positionChange = rootMotionTransform.Position; Rotation rotationChange = rootMotionTransform.Rotation; // Apply the root motion to the model's position myModel.Position += positionChange; myModel.Rotation *= rotationChange;