Summary
A component which takes the root motion from an
UnityEngine.Animator
and applies it to a
UnityEngine.CharacterController
.
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Base Types
-
- MonoBehaviour
- RedirectRootMotion
- RedirectRootMotion
<CharacterController>
graph BT
Type-->Base0["RedirectRootMotion<CharacterController>"]
Base0-->Base1["RedirectRootMotion"]
click Base1 "/animancer/api/Animancer/RedirectRootMotion"
Base1-->Base2["MonoBehaviour"]
Type["RedirectRootMotionToCharacterController"]
class Type type-node
Syntax
[AddComponentMenu("Animancer/Redirect Root Motion To Character Controller")]
[HelpURL("https://kybernetik.com.au/animancer/api/Animancer/" + nameof(RedirectRootMotionToCharacterController))]
public class RedirectRootMotionToCharacterController : RedirectRootMotion<CharacterController>
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 . |