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
|
overridevirtual |
Called to gather on-screen debug data.
This is called on the game thread.
| DebugData | Debug data structure used to output any relevant data |
重载 FAnimNode_Base .
|
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.
| Context | Context structure providing access to relevant data |
重载 FAnimNode_Base .
| FBoneReference FAnimNode_Trail::BaseJoint |
Base Joint to calculate velocity from.
If none, it will use Component's World Transform. .
| int32 FAnimNode_Trail::ChainLength |
Number of bones above the active one in the hierarchy to modify.
ChainLength should be at least 2.
| 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 ).
Component-space locations of the bones from last frame.
Each frame these are moved towards their 'animated' locations.
| 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.