Struct AnimGraphImpulse
The animation graph 'impulse' connections data container (the actual transfer is done via pointer as it gives better performance). Container for skeleton nodes transformation hierarchy and any other required data. Unified layout for both local and model transformation spaces.
Assembly: FlaxEngine.dll
File: Engine/Animations/Graph/AnimGraph.h
Syntax
public struct AnimGraphImpulse
Fields
Length
The animation length (in seconds).
Declaration
public float Length
Field Value
|
float
|
Nodes
The skeleton nodes transformation hierarchy nodes. Size always matches the Anim Graph skeleton description.
Declaration
public Array<Transform> Nodes
Field Value
|
Array<Transform>
|
Position
The animation time position (in seconds).
Declaration
public float Position
Field Value
|
float
|
RootMotion
The root motion extracted from the animation to apply on animated object.
Declaration
public Transform RootMotion = Transform::Identity
Field Value
|
Transform
|
Methods
GetNodeLocalTransformation(SkeletonData& skeleton, int32 nodeIndex)
Declaration
public Transform GetNodeLocalTransformation(SkeletonData& skeleton, int32 nodeIndex) const
Parameters
|
SkeletonData
skeleton
|
|
int32
nodeIndex
|
Returns
|
Transform
|
GetNodeModelTransformation(SkeletonData& skeleton, int32 nodeIndex)
Declaration
public Transform GetNodeModelTransformation(SkeletonData& skeleton, int32 nodeIndex) const
Parameters
|
SkeletonData
skeleton
|
|
int32
nodeIndex
|
Returns
|
Transform
|
SetNodeLocalTransformation(SkeletonData& skeleton, int32 nodeIndex, const Transform& value)
Declaration
public void SetNodeLocalTransformation(SkeletonData& skeleton, int32 nodeIndex, const Transform& value)
Parameters
|
SkeletonData
skeleton
|
|
int32
nodeIndex
|
|
Transform
value
|
Returns
|
void
|
SetNodeModelTransformation(SkeletonData& skeleton, int32 nodeIndex, const Transform& value)
Declaration
public void SetNodeModelTransformation(SkeletonData& skeleton, int32 nodeIndex, const Transform& value)
Parameters
|
SkeletonData
skeleton
|
|
int32
nodeIndex
|
|
Transform
value
|