Controller that simulates physics based on the physics asset of the skeletal mesh component 更多...
#include <AnimNode_RigidBody.h>
继承自 FAnimNode_SkeletalControlBase .
Public 成员函数 | |
| 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 bool | NeedsDynamicReset () const override |
| For nodes that implement some kind of simulation, return true here so ResetDynamics() gets called when things like teleports, time skips etc. 更多... | |
| virtual bool | NeedsOnInitializeAnimInstance () const override |
| For nodes that need some kind of initialization that is not dependent on node relevancy (i.e. 更多... | |
| virtual void | OnInitializeAnimInstance (const FAnimInstanceProxy *InProxy, const UAnimInstance *InAnimInstance) override |
| Called once, from game thread as the parent anim instance is created | |
| virtual void | PreUpdate (const UAnimInstance *InAnimInstance) override |
| Override this to perform game-thread work prior to non-game thread Update() being called | |
| virtual void | ResetDynamics (ETeleportType InTeleportType) override |
| Called to help dynamics-based updates to recover correctly from large movements/teleports | |
Public 属性 | |
| FBoneReference | BaseBoneRef |
| Matters if SimulationSpace is BaseBone | |
| uint8 | bClampLinearTranslationLimitToRefPose: 1 |
| Correct for linear tearing on bodies with all axes Locked. 更多... | |
| bool | bForceDisableCollisionBetweenConstraintBodies |
| Whether to allow collisions between two bodies joined by a constraint | |
| uint8 | bFreezeIncomingPoseOnStart: 1 |
| When simulation starts, freeze incoming pose. 更多... | |
| uint8 | bTransferBoneVelocities: 1 |
| When simulation starts, transfer previous bone velocities (from animation) to make transition into simulation seamless. | |
| float | CachedBoundsScale |
| Scale of cached bounds (vs. 更多... | |
| FVector | ComponentAppliedLinearAccClamp |
| When using non-world-space sim, this is an overall clamp on acceleration derived from ComponentLinearAccScale and ComponentLinearVelScale, to ensure it is not too large. | |
| FVector | ComponentLinearAccScale |
| When using non-world-space sim, this controls how much of the components world-space acceleration is passed on to the local-space simulation. | |
| FVector | ComponentLinearVelScale |
| When using non-world-space sim, this applies a 'drag' to the bodies in the local space simulation, based on the components world-space velocity. | |
| float | EvaluationResetTime |
| If the node is not evaluated for this amount of time (seconds), either because a lower LOD was in use for a while or the component was not visible, reset the simulation to the default pose on the next evaluation. 更多... | |
| FVector | ExternalForce |
| Applies a uniform external force in world space. 更多... | |
| TEnumAsByte< ECollisionChannel > | OverlapChannel |
| The channel we use to find static geometry to collide with | |
| UPhysicsAsset * | OverridePhysicsAsset |
| Physics asset to use. 更多... | |
| FVector | OverrideWorldGravity |
| Override gravity | |
| FSimSpaceSettings | SimSpaceSettings |
| Settings for the system which passes motion of the simulation's space into the simulation. 更多... | |
| ESimulationSpace | SimulationSpace |
| What space to simulate the bodies in. 更多... | |
| float | WorldSpaceMinimumScale |
| For world-space simulations, if the magnitude of the component's 3D scale is less than WorldSpaceMinimumScale, do not update the node. | |
Controller that simulates physics based on the physics asset of the skeletal mesh component
|
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 |
For nodes that implement some kind of simulation, return true here so ResetDynamics() gets called when things like teleports, time skips etc.
occur that might require special handling. 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 .
|
inlineoverridevirtual |
For nodes that need some kind of initialization that is not dependent on node relevancy (i.e.
it is insufficent or inefficent to use Initialize_AnyThread), return true here. Note that this is called at load on the UAnimInstance CDO to avoid needing to call this at runtime.
重载 FAnimNode_Base .
| uint8 FAnimNode_RigidBody::bClampLinearTranslationLimitToRefPose |
Correct for linear tearing on bodies with all axes Locked.
This only works if all axes linear translation are locked
| uint8 FAnimNode_RigidBody::bFreezeIncomingPoseOnStart |
When simulation starts, freeze incoming pose.
This is useful for ragdolls, when we want the simulation to take over. It prevents non simulated bones from animating.
| float FAnimNode_RigidBody::CachedBoundsScale |
Scale of cached bounds (vs.
actual bounds). Increasing this may improve performance, but overlaps may not work as well. (A value of 1.0 effectively disables cached bounds).
| float FAnimNode_RigidBody::EvaluationResetTime |
If the node is not evaluated for this amount of time (seconds), either because a lower LOD was in use for a while or the component was not visible, reset the simulation to the default pose on the next evaluation.
Set to 0 to disable time-based reset.
| FVector FAnimNode_RigidBody::ExternalForce |
Applies a uniform external force in world space.
This allows for easily faking inertia of movement while still simulating in component space for example
| UPhysicsAsset* FAnimNode_RigidBody::OverridePhysicsAsset |
Physics asset to use.
If empty use the skeletal mesh's default physics asset
| FSimSpaceSettings FAnimNode_RigidBody::SimSpaceSettings |
Settings for the system which passes motion of the simulation's space into the simulation.
This allows the simulation to pass a fraction of the world space motion onto the bodies which allows Bone-Space and Component-Space simulations to react to world-space movement in a controllable way. This system is a superset of the functionality provided by ComponentLinearAccScale, ComponentLinearVelScale, and ComponentAppliedLinearAccClamp. In general you should not have both systems enabled.
| ESimulationSpace FAnimNode_RigidBody::SimulationSpace |
What space to simulate the bodies in.
This affects how velocities are generated