Navigation
API > API/Plugins > API/Plugins/PoseSearch > API/Plugins/PoseSearch/FAssetIndexer
Description
Returns OutSampleVelocity as the delta velocity of the bone Schema.BoneReferences[SchemaSampleBoneIdx] velocity at time CalculateSampleTime(SampleIdx) + SampleTimeOffset minus the velocity of the bone Schema.BoneReferences[SchemaOriginBoneIdx] at time CalculateSampleTime(SampleIdx) + OriginTimeOffset. Times will be processed by GetPermutationTimeOffsets(PermutationTimeType, ...) if bUseCharacterSpaceVelocities is true, velocities will be computed in root bone space, rather than animation (world) space
| Name | GetSampleVelocity |
| Type | function |
| Header File | /Engine/Plugins/Animation/PoseSearch/Source/Runtime/Public/PoseSearch/PoseSearchAssetIndexer.h |
| Include Path | #include "PoseSearch/PoseSearchAssetIndexer.h" |
| Source | /Engine/Plugins/Animation/PoseSearch/Source/Runtime/Private/PoseSearchAssetIndexer.cpp |
bool GetSampleVelocity
(
FVector & OutSampleVelocity,
float SampleTimeOffset,
float OriginTimeOffset,
int32 SampleIdx,
int8 SchemaSampleBoneIdx,
int8 SchemaOriginBoneIdx,
const FRole & SampleRole,
const FRole & OriginRole,
bool bUseCharacterSpaceVelocities,
EPermutationTimeType PermutationTimeType,
int32 SamplingAttributeId
)