- Assembly
- Animancer
.dll - Namespace
- Animancer
- Base Types
-
- MonoBehaviour
- RedirectRootMotion
- Derived Types
graph BT
Type-->Base0["RedirectRootMotion"]
click Base0 "/animancer/api/Animancer/RedirectRootMotion"
Base0-->Base1["MonoBehaviour"]
Type["RedirectRootMotion<T>"]
class Type type-node
Derived0["RedirectRootMotionToTransform"]-->Type
click Derived0 "/animancer/api/Animancer/RedirectRootMotionToTransform"
Derived1["RedirectRootMotionToRigidbody"]-->Type
click Derived1 "/animancer/api/Animancer/RedirectRootMotionToRigidbody"
Derived2["RedirectRootMotionToCharacterController"]-->Type
click Derived2 "/animancer/api/Animancer/RedirectRootMotionToCharacterController"
Syntax
[HelpURL("https://kybernetik.com.au/animancer/api/Animancer/" + nameof(RedirectRootMotion<T>) + "_1")]
public abstract class RedirectRootMotion<T> : RedirectRootMotion where T : Object
Attributes
Type | Description |
---|---|
HelpURLAttribute |
Type Parameters
Name | Description |
---|---|
T |
Properties
Name | Value | Summary |
---|---|---|
Animator | Animator |
The
UnityEngine.Animator which provides the root motion.Inherited from RedirectRootMotion
|
ApplyRootMotion | bool |
Returns true if the
Animancer.RedirectRootMotion`1.Target and Animancer.RedirectRootMotion.Animator are set and
UnityEngine.Animator.applyRootMotion is enabled.
|
Position | Vector3 |
The current position of the target.
Inherited from RedirectRootMotion
|
Rotation | Quaternion |
The current rotation of the target.
Inherited from RedirectRootMotion
|
Target | T |
The object which the root motion will be applied to.
|
Methods
Name | Value | Summary |
---|---|---|
OnAnimatorMove |
void |
Applies the root motion from the
Animancer.RedirectRootMotion.Animator to the Target .Inherited from RedirectRootMotion
|
OnValidate |
void |
Automatically finds the
Animancer.RedirectRootMotion.Animator and Animancer.RedirectRootMotion`1.Target . |