Navigation
API > API/Plugins > API/Plugins/AnimDatabase > API/Plugins/AnimDatabase/UAnimDatabaseFrameAttributeLibra-
Description
General function for computing bone attributes in the world space. Outputs various arrays of frame attributes based on the bone indices passed in. This is the most efficient way of computing multiple global bone attributes as it combines all required bone indices into one large array, evaluates the pose data in the animation sequences once extracting information for these bones, and then performs just the subset of forward kinematics required to extract the desired properties.
Given that evaluating the animation data for a whole animation database can be relatively slow it is encouraged to use this function wherever possible rather than the more convenient individual functions for computing bone attributes.
| Name | MakeBoneGlobalFrameAttributes |
| Type | function |
| Header File | /Engine/Plugins/Experimental/Animation/AnimDatabase/Source/AnimDatabase/Public/AnimDatabaseFrameAttribute.h |
| Include Path | #include "AnimDatabaseFrameAttribute.h" |
| Source | /Engine/Plugins/Experimental/Animation/AnimDatabase/Source/AnimDatabase/Private/AnimDatabaseFrameAttribute.cpp |
UFUNCTION (BlueprintPure=false, Category="AnimDatabase",
Meta=(NotBlueprintThreadSafe, AdvancedDisplay=14, AutoCreateRefTerm="BoneLocationIndices, BoneRotationIndices, BoneScaleIndices, BoneLinearVelocityIndices, BoneAngularVelocityIndices, BoneScalarVelocityIndices"))
static void MakeBoneGlobalFrameAttributes
(
TArray < FAnimDatabaseFrameAttribute > & OutLocationFrameAttributes,
TArray < FAnimDatabaseFrameAttribute > & OutRotationFrameAttributes,
TArray < FAnimDatabaseFrameAttribute > & OutScaleFrameAttributes,
TArray < FAnimDatabaseFrameAttribute > & OutLinearVelocityFrameAttributes,
TArray < FAnimDatabaseFrameAttribute > & OutAngularVelocityFrameAttributes,
TArray < FAnimDatabaseFrameAttribute > & OutScalarVelocityFrameAttributes,
const UAnimDatabase * Database,
const FAnimDatabaseFrameRanges & FrameRanges,
const TArray < int32 > & BoneLocationIndices,
const TArray < int32 > & BoneRotationIndices,
const TArray < int32 > & BoneScaleIndices,
const TArray < int32 > & BoneLinearVelocityIndices,
const TArray < int32 > & BoneAngularVelocityIndices,
const TArray < int32 > & BoneScalarVelocityIndices,
const float RelativeTime
)