Navigation
API > API/Plugins > API/Plugins/AnimDatabase > API/Plugins/AnimDatabase/UAnimDatabaseFrameAttributeLibra-
Description
Computes a float frame attribute representing the matching distance between some location and linear velocity frame attributes and a constant location and velocity. Computes this distance using a combination of the maximum velocity offset that would be produced by inertialization, and the integral of the offset displacement produced from inertialization.
In general this provides a "nicer" distance metric than just comparing locations and velocities independently because it accounts for the fact that some velocity offsets can actually better correct location offsets during inertialization.
| Name | FrameAttributeInertializationMatchingDistance |
| 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=true, Category="AnimDatabase")
static FAnimDatabaseFrameAttribute FrameAttributeInertializationMatchingDistance
(
const FAnimDatabaseFrameAttribute & LocationFrameAttribute,
const FAnimDatabaseFrameAttribute & LinearVelocityFrameAttribute,
const FVector Location,
const FVector Velocity,
const float BlendTime,
const float LocationScale,
const float VelocityScale,
const float LocationWeight,
const float VelocityWeight
)