RedirectRootMotionToRigidbody Class

Summary

A component which takes the root motion from an UnityEngine.Animator and applies it to a UnityEngine.Rigidbody.
Assembly
Animancer.dll
Namespace
Animancer
Base Types
graph BT Type-->Base0["RedirectRootMotion<Rigidbody>"] Base0-->Base1["RedirectRootMotion"] click Base1 "/animancer/api/Animancer/RedirectRootMotion" Base1-->Base2["MonoBehaviour"] Type["RedirectRootMotionToRigidbody"] class Type type-node

Syntax

[AddComponentMenu("Animancer/Redirect Root Motion To Rigidbody")]
[HelpURL("https://kybernetik.com.au/animancer/api/Animancer/" + nameof(RedirectRootMotionToRigidbody))]
public class RedirectRootMotionToRigidbody : RedirectRootMotion<Rigidbody>

Remarks

Documentation: Redirecting Root Motion

Attributes

Type Description
AddComponentMenu
HelpURLAttribute

Properties

Name Value Summary
Animator Animator
The UnityEngine.Animator which provides the root motion.
Inherited from RedirectRootMotion
Position Vector3
The current position of the target.
Rotation Quaternion
The current rotation of the target.

Methods

Name Value Summary
OnAnimatorMove() void
Applies the root motion from the Animancer.RedirectRootMotion.Animator to the Target.
Inherited from RedirectRootMotion