Simple controller that replaces or adds to the translation/rotation of a single bone. 更多...
#include <AnimNode_SpringBone.h>
继承自 FAnimNode_SkeletalControlBase .
Public 成员函数 | |
| virtual void | CacheBones_AnyThread (const FAnimationCacheBonesContext &Context) override |
| Called to cache any bones that this node needs to track (e.g. 更多... | |
| virtual void | GatherDebugData (FNodeDebugData &DebugData) override |
| Called to gather on-screen debug data. 更多... | |
| virtual bool | HasPreUpdate () const override |
| Override this to indicate that PreUpdate() should be called on the game thread (usually to gather non-thread safe data) before Update() is called. 更多... | |
| virtual void | Initialize_AnyThread (const FAnimationInitializeContext &Context) override |
| Called when the node first runs. 更多... | |
| virtual void | PreUpdate (const UAnimInstance *InAnimInstance) override |
| Override this to perform game-thread work prior to non-game thread Update() being called | |
Public 属性 | |
| uint8 | bHadValidStrength: 1 |
| Did we have a non-zero ControlStrength last frame. | |
| uint8 | bLimitDisplacement: 1 |
| Limit the amount that a bone can stretch from its ref-pose length. | |
| FVector | BoneLocation |
| World-space location of the bone. | |
| FVector | BoneVelocity |
| World-space velocity of the bone. | |
| uint8 | bRotateX: 1 |
| If true take the spring calculation for rotation in X | |
| uint8 | bRotateY: 1 |
| If true take the spring calculation for rotation in Y | |
| uint8 | bRotateZ: 1 |
| If true take the spring calculation for rotation in Z | |
| uint8 | bTranslateX: 1 |
| If true take the spring calculation for translation in X | |
| uint8 | bTranslateY: 1 |
| If true take the spring calculation for translation in Y | |
| uint8 | bTranslateZ: 1 |
| If true take the spring calculation for translation in Z | |
| float | ErrorResetThresh |
| If spring stretches more than this, reset it. 更多... | |
| float | FixedTimeStep |
| Internal use - Current timestep | |
| FVector | LocalBoneTransform |
| Cache of previous frames local bone transform so that when we cannot simulate (timestep == 0) we can still update bone location | |
| float | MaxDisplacement |
| If bLimitDisplacement is true, this indicates how long a bone can stretch beyond its length in the ref-pose. | |
| FVector | OwnerVelocity |
| Velocity of the owning actor | |
| float | RemainingTime |
| Internal use - Amount of time we need to simulate. | |
| FBoneReference | SpringBone |
| Name of bone to control. 更多... | |
| float | SpringDamping |
| Damping of spring | |
| float | SpringStiffness |
| Stiffness of spring | |
| float | TimeDilation |
| Internal use - Current time dilation | |
Simple controller that replaces or adds to the translation/rotation of a single bone.
|
overridevirtual |
Called to cache any bones that this node needs to track (e.g.
in a FBoneReference). This is usually called at startup when LOD switches occur. This can be called on any thread.
| Context | Context structure providing access to relevant data |
重载 FAnimNode_Base .
|
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 .
|
inlineoverridevirtual |
Override this to indicate that PreUpdate() should be called on the game thread (usually to gather non-thread safe data) before Update() is called.
Note that this is called at load on the UAnimInstance CDO to avoid needing to call this at runtime. This is called on the game thread.
重载 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 .
| float FAnimNode_SpringBone::ErrorResetThresh |
If spring stretches more than this, reset it.
Useful for catching teleports etc
| FBoneReference FAnimNode_SpringBone::SpringBone |
Name of bone to control.
This is the main bone chain to modify from.