Core
Core runtime functions.
Read time 2 minutesLast updated 3 hours ago
Definition
- Type: Class
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
[BurstCompile]public static class Core
Remarks
The functions of this class operate on an AnimationStream:
-
Inertial blending: Core.ComputeInertialBlendingCoefficients and Core.InertialBlend.
-
Remapping a pose between rigs: Core.Remap.
-
Spaces and velocities: Core.ComputeLocalToCharacter and themethods.
Compute*Velocities
To blend streams, use the extension methods of AnimationStreamBlendingExtensions.
Static Methods
Method | Description |
|---|---|
| ComputeInertialBlendingCoefficients | Computes the inertial blending coefficients of every channel of a rig at the start of a transition. |
| ComputeLocalToCharacter | Compute matrices in LocalToCharacter space with the specified offset. For example, if you want to compute the LocalToWorld matrices of the rig, pass in the LocalToWorld matrix of the root as the offset parameter. |
| ComputeLocalToParentAngularVelocities | Computes the angular velocity of each bone in LocalToParent space, from two consecutive streams of the same rig. |
| ComputeLocalToParentLinearVelocities | Computes the linear velocity of each bone in LocalToParent space, from two consecutive streams of the same rig. |
| ComputeLocalToWorldAngularVelocities | Computes the angular velocity of each bone in world space, from two consecutive streams of the same rig. |
| ComputeLocalToWorldLinearVelocities | Computes the linear velocity of each bone in world space, from two consecutive streams of the same rig. |
| InertialBlend | Applies an inertial blend to an input pose and writes the blended pose to an output stream. |
| Remap | Copies the channel values of a source stream to a destination stream, using a rig remap table. |
| SolveAimConstraint | Aim constraint solver rotates a constrained bone to face a target position specified by one or more source objects. |
| SolveParentConstraint | Parent constraint solver moves and rotates a constrained bone as if it is the child of another source object. The order source objects are specified does not affect the result. |
| SolvePositionConstraint | Position constraint solver moves a constrained bone to follow its source objects. |
| SolveRotationConstraint | Rotation constraint solver rotates a constrained bone to match the rotation of its source objects. The constraint applies rotation about the shortest path to each source. The order the sources are specified does not affect the result. |
| SolveTwistCorrection | Twist correction solver redistributes a percentage of a source's rotation to one or more twist nodes in order to correct the twist deformation of a body part that rotates on multiple axes. |
| SolveTwoBoneIK | Simple 2-bone IK solver based on cosine rule. It uses an additional hint position (specified in LocalToCharacter space) which allows you to specify the direction the limb should be oriented when it bends. |
Structs
Struct | Description |
|---|---|
| Core.AimConstraintData | AimConstraint solver settings. |
| Core.InertialBlendingCoefficientsData | The coefficients of the polynomial that describes the offset of one animation channel during an inertial blend. |
| Core.ParentConstraintData | Parent constraint solver settings. |
| Core.PoseMixer | Mixes several weighted animation streams into one output stream. |
| Core.PositionConstraintData | Position constraint solver settings. |
| Core.RotationConstraintData | Rotation constraint solver settings. |
| Core.TwistCorrectionData | TwistCorrection solver settings. |
| Core.TwoBoneIKData | 2-bone IK solver settings. |