engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
FAnimNode_Trail结构体 参考

Trail Controller 更多...

#include <AnimNode_Trail.h>

继承自 FAnimNode_SkeletalControlBase .

Public 成员函数

virtual void GatherDebugData (FNodeDebugData &DebugData) override
 Called to gather on-screen debug data. 更多...
 
virtual void Initialize_AnyThread (const FAnimationInitializeContext &Context) override
 Called when the node first runs. 更多...
 

Public 属性

uint8 bActorSpaceFakeVel:1
 Whether 'fake' velocity should be applied in actor or world space.
 
FBoneReference BaseJoint
 Base Joint to calculate velocity from. 更多...
 
uint8 bHadValidStrength:1
 Did we have a non-zero ControlStrength last frame.
 
uint8 bInvertChainBoneAxis:1
 Invert the direction specified in ChainBoneAxis.
 
uint8 bLimitRotation:1
 Limit the amount that a bone can stretch from its ref-pose length.
 
uint8 bLimitStretch:1
 Limit the amount that a bone can stretch from its ref-pose length.
 
uint8 bReorientParentToChild:1
 Fix up rotation to face child for the parent
 
uint8 bUsePlanarLimit:1
 Whether to evaluate planar limits
 
TEnumAsByte< EAxis::Type > ChainBoneAxis
 Axis of the bones to point along trail.
 
int32 ChainLength
 Number of bones above the active one in the hierarchy to modify. 更多...
 
FVector FakeVelocity
 'Fake' velocity applied to bones.
 
float MaxDeltaTime
 To avoid hitches causing stretch of trail, you can use MaxDeltaTime to clamp the long delta time. 更多...
 
FTransform OldBaseTransform
 LocalToWorld used last frame, used for building transform between frames.
 
TArray< FPerJointTrailSetup > PerJointTrailData
 Per Joint Trail Set up
 
TArray< FAnimPhysPlanarLimit > PlanarLimits
 List of available planar limits for this node
 
float StretchLimit
 If bLimitStretch is true, this indicates how long a bone can stretch beyond its length in the ref-pose.
 
float ThisTimstep
 Internal use - we need the timestep to do the relaxation in CalculateNewBoneTransforms.
 
FBoneReference TrailBone
 Reference to the active bone in the hierarchy to modify.
 
TArray< FVector > TrailBoneLocations
 Component-space locations of the bones from last frame. 更多...
 
FRuntimeFloatCurve TrailRelaxationSpeed
 How quickly we 'relax' the bones to their animated positions. 更多...
 

详细描述

Trail Controller

成员函数说明

◆ GatherDebugData()

virtual void FAnimNode_Trail::GatherDebugData ( FNodeDebugData &  DebugData)
overridevirtual

Called to gather on-screen debug data.

This is called on the game thread.

参数
DebugDataDebug data structure used to output any relevant data

重载 FAnimNode_Base .

◆ Initialize_AnyThread()

virtual void FAnimNode_Trail::Initialize_AnyThread ( const FAnimationInitializeContext &  Context)
overridevirtual

Called when the node first runs.

If the node is inside a state machine or cached pose branch then this can be called multiple times. This can be called on any thread.

参数
ContextContext structure providing access to relevant data

重载 FAnimNode_Base .

类成员变量说明

◆ BaseJoint

FBoneReference FAnimNode_Trail::BaseJoint

Base Joint to calculate velocity from.

If none, it will use Component's World Transform. .

◆ ChainLength

int32 FAnimNode_Trail::ChainLength

Number of bones above the active one in the hierarchy to modify.

ChainLength should be at least 2.

◆ MaxDeltaTime

float FAnimNode_Trail::MaxDeltaTime

To avoid hitches causing stretch of trail, you can use MaxDeltaTime to clamp the long delta time.

If you want 30 fps to set it to 0.03333f ( = 1/30 ).

◆ TrailBoneLocations

TArray<FVector> FAnimNode_Trail::TrailBoneLocations

Component-space locations of the bones from last frame.

Each frame these are moved towards their 'animated' locations.

◆ TrailRelaxationSpeed

FRuntimeFloatCurve FAnimNode_Trail::TrailRelaxationSpeed

How quickly we 'relax' the bones to their animated positions.

Time 0 will map to top root joint, time 1 will map to the bottom joint.


该结构体的文档由以下文件生成: