Documentation

Unity Engine

Download Unity

Unity Engine

Core

Core runtime functions.
Read time 2 minutesLast updated 3 hours ago

Definition

[BurstCompile]public static class Core

Remarks

The functions of this class operate on an AnimationStream:
To blend streams, use the extension methods of AnimationStreamBlendingExtensions.

Static Methods

Method

Description

ComputeInertialBlendingCoefficientsComputes the inertial blending coefficients of every channel of a rig at the start of a transition.
ComputeLocalToCharacterCompute 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.
ComputeLocalToParentAngularVelocitiesComputes the angular velocity of each bone in LocalToParent space, from two consecutive streams of the same rig.
ComputeLocalToParentLinearVelocitiesComputes the linear velocity of each bone in LocalToParent space, from two consecutive streams of the same rig.
ComputeLocalToWorldAngularVelocitiesComputes the angular velocity of each bone in world space, from two consecutive streams of the same rig.
ComputeLocalToWorldLinearVelocitiesComputes the linear velocity of each bone in world space, from two consecutive streams of the same rig.
InertialBlendApplies an inertial blend to an input pose and writes the blended pose to an output stream.
RemapCopies the channel values of a source stream to a destination stream, using a rig remap table.
SolveAimConstraintAim constraint solver rotates a constrained bone to face a target position specified by one or more source objects.
SolveParentConstraintParent 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.
SolvePositionConstraintPosition constraint solver moves a constrained bone to follow its source objects.
SolveRotationConstraintRotation 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.
SolveTwistCorrectionTwist 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.
SolveTwoBoneIKSimple 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.AimConstraintDataAimConstraint solver settings.
Core.InertialBlendingCoefficientsDataThe coefficients of the polynomial that describes the offset of one animation channel during an inertial blend.
Core.ParentConstraintDataParent constraint solver settings.
Core.PoseMixerMixes several weighted animation streams into one output stream.
Core.PositionConstraintDataPosition constraint solver settings.
Core.RotationConstraintDataRotation constraint solver settings.
Core.TwistCorrectionDataTwistCorrection solver settings.
Core.TwoBoneIKData2-bone IK solver settings.