Container object for a physics engine 'scene'. 更多...
#include <PhysScene_PhysX.h>
Public 成员函数 | |
| void | AddCustomPhysics_AssumesLocked (FBodyInstance *BodyInstance, FCalculateCustomPhysics &CalculateCustomPhysics) |
| Add a custom callback for next step that will be called on every substep | |
| void | AddForce_AssumesLocked (FBodyInstance *BodyInstance, const FVector &Force, bool bAllowSubstepping, bool bAccelChange) |
| Adds a force to a body - We need to go through scene to support substepping | |
| void | AddForceAtPosition_AssumesLocked (FBodyInstance *BodyInstance, const FVector &Force, const FVector &Position, bool bAllowSubstepping, bool bIsLocalForce=false) |
| Adds a force to a body at a specific position - We need to go through scene to support substepping | |
| ENGINE_API void | AddPendingOnConstraintBreak (FConstraintInstance *ConstraintInstance) |
| Pending constraint break events | |
| ENGINE_API void | AddPendingSleepingEvent (FBodyInstance *BI, ESleepEvent SleepEventType) |
| Pending wake/sleep events | |
| void | AddRadialForceToBody_AssumesLocked (FBodyInstance *BodyInstance, const FVector &Origin, const float Radius, const float Strength, const uint8 Falloff, bool bAccelChange, bool bAllowSubstepping) |
| Adds a radial force to a body - We need to go through scene to support substepping | |
| void | AddTorque_AssumesLocked (FBodyInstance *BodyInstance, const FVector &Torque, bool bAllowSubstepping, bool bAccelChange) |
| Adds torque to a body - We need to go through scene to support substepping | |
| void | ApplyWorldOffset (FVector InOffset) |
| Shifts physics scene origin by specified offset | |
| void | ClearForces_AssumesLocked (FBodyInstance *BodyInstance, bool bAllowSubstepping) |
| Clears currently accumulated forces on a specified body instance | |
| void | ClearPreSimKinematicUpdate (USkeletalMeshComponent *InSkelComp) |
| Remove this SkeletalMeshComponent from set needing kinematic update before simulating physics | |
| void | ClearTorques_AssumesLocked (FBodyInstance *BodyInstance, bool bAllowSubstepping) |
| Clears currently accumulated torques on a specified body instance | |
| ENGINE_API void | DeferredAddCollisionDisableTable (uint32 SkelMeshCompID, TMap< struct FRigidBodyIndexPair, bool > *CollisionDisableTable) |
| Adds to queue of skelmesh we want to add to collision disable table | |
| ENGINE_API void | DeferredRemoveCollisionDisableTable (uint32 SkelMeshCompID) |
| Adds to queue of skelmesh we want to remove from collision disable table | |
| ENGINE_API void | EndFrame (ULineBatchComponent *InLineBatcher) |
| Ends a frame | |
| ENGINE_API void | EnsureCollisionTreeIsBuilt (UWorld *World) |
| Ensures that the collision tree is built. | |
| const TMap< uint32, TMap< struct FRigidBodyIndexPair, bool > * > & | GetCollisionDisableTableLookup () |
| Gets the collision disable table | |
| FGraphEventRef | GetCompletionEvent () |
| returns the completion event for a frame | |
| bool | GetKinematicTarget_AssumesLocked (const FBodyInstance *BodyInstance, FTransform &OutTM) const |
| Gets a Kinematic actor's target position - We need to do this here to support substepping Returns true if kinematic target has been set. 更多... | |
| TArray< FCollisionNotifyInfo > & | GetPendingCollisionNotifies () |
| Gets the array of collision notifications, pending execution at the end of the physics engine run. | |
| ENGINE_API physx::PxScene * | GetPxScene () const |
| Get the PxScene | |
| bool | HandleExecCommands (const TCHAR *Cmd, FOutputDevice *Ar) |
| Handle exec commands related to scene (PXVIS and APEXVIS) | |
| ENGINE_API void | KillVisualDebugger () |
| Kill the visual debugger | |
| bool | MarkForPreSimKinematicUpdate (USkeletalMeshComponent *InSkelComp, ETeleportType InTeleport, bool bNeedsSkinning) |
| Add this SkeletalMeshComponent to the list needing kinematic bodies updated before simulating physics | |
| void | RemoveBodyInstanceFromPendingLists_AssumesLocked (FBodyInstance *BodyInstance) |
| Lets the scene update anything related to this BodyInstance as it's now being terminated | |
| void | SetKinematicTarget_AssumesLocked (FBodyInstance *BodyInstance, const FTransform &TargetTM, bool bAllowSubstepping) |
| Sets a Kinematic actor's target position - We need to do this here to support substepping | |
| void | SetPhysXTreeRebuildRate (int32 RebuildRate) |
| The number of frames it takes to rebuild the PhysX scene query AABB tree. 更多... | |
| ENGINE_API void | SetUpForFrame (const FVector *NewGrav, float InDeltaSeconds=0.0f, float InMaxPhysicsDeltaTime=0.0f, float InMaxSubstepDeltaTime=0.f, int32 InMaxSubsteps=1, bool bUnused=false) |
| Set the gravity and timing of all physics scenes | |
| ENGINE_API void | StartFrame () |
| Starts a frame | |
| ENGINE_API void | WaitPhysScenes () |
| Waits for all physics scenes to complete | |
静态 Public 成员函数 | |
| static bool | SupportsOriginShifting () |
静态 Public 属性 | |
| static ENGINE_API TSharedPtr< IContactModifyCallbackFactory > | ContactModifyCallbackFactory |
| Static factories used to override the simulation contact modify callback from other modules. | |
| static ENGINE_API TSharedPtr< IPhysicsReplicationFactory > | PhysicsReplicationFactory |
| Static factory used to override the physics replication manager from other modules. 更多... | |
Container object for a physics engine 'scene'.
| bool FPhysScene_PhysX::GetKinematicTarget_AssumesLocked | ( | const FBodyInstance * | BodyInstance, |
| FTransform & | OutTM | ||
| ) | const |
Gets a Kinematic actor's target position - We need to do this here to support substepping Returns true if kinematic target has been set.
If false the OutTM is invalid
| void FPhysScene_PhysX::SetPhysXTreeRebuildRate | ( | int32 | RebuildRate | ) |
The number of frames it takes to rebuild the PhysX scene query AABB tree.
The bigger the number, the smaller fetchResults takes per frame, but the more the tree deteriorates until a new tree is built
|
inlinestatic |
|
static |
Static factory used to override the physics replication manager from other modules.
This is useful for custom game logic. If not set it defaults to using FPhysicsReplication.