Owns all the data associated with the simulation. 更多...
#include <ImmediatePhysicsSimulation_Chaos.h>
类 | |
| struct | FIgnorePair |
| An array of actors to ignore. 更多... | |
Public 成员函数 | |
| void | AddToCollidingPairs (FActorHandle *ActorHandle) |
| Set up potential collisions between the actor and all other dynamic actors | |
| FActorHandle * | CreateDynamicActor (FBodyInstance *BodyInstance, const FTransform &Transform) |
| Create a dynamic body and add it to the simulation | |
| FJointHandle * | CreateJoint (FConstraintInstance *ConstraintInstance, FActorHandle *Body1, FActorHandle *Body2) |
| Create a physical joint and add it to the simulation | |
| FActorHandle * | CreateKinematicActor (FBodyInstance *BodyInstance, const FTransform &Transform) |
| Create a kinematic body and add it to the simulation | |
| FActorHandle * | CreateStaticActor (FBodyInstance *BodyInstance) |
| Create a static body and add it to the simulation | |
| void | SetIgnoreCollisionActors (const TArray< FActorHandle * > &InIgnoreCollisionActors) |
| Set bodies that require no collision | |
| void | SetIgnoreCollisionPairTable (const TArray< FIgnorePair > &InIgnoreCollisionPairTable) |
| Set pair of bodies to ignore collision for | |
| void | SetNumActiveBodies (int32 NumActiveBodies) |
| Sets the number of active bodies. 更多... | |
| void | SetSolverIterations (const FReal FixedDt, const int32 SolverIts, const int32 JointIts, const int32 CollisionIts, const int32 SolverPushOutIts, const int32 JointPushOutIts, const int32 CollisionPushOutIts) |
| Set new iteration counts. 更多... | |
| void | Simulate (float DeltaTime, float MaxStepTime, int32 MaxSubSteps, const FVector &InGravity) |
| Advance the simulation by DeltaTime | |
Owns all the data associated with the simulation.
Can be considered a single scene or world
| void ImmediatePhysics_Chaos::FSimulation::SetNumActiveBodies | ( | int32 | NumActiveBodies | ) |
Sets the number of active bodies.
This number is reset any time a new simulated body is created
| void ImmediatePhysics_Chaos::FSimulation::SetSolverIterations | ( | const FReal | FixedDt, |
| const int32 | SolverIts, | ||
| const int32 | JointIts, | ||
| const int32 | CollisionIts, | ||
| const int32 | SolverPushOutIts, | ||
| const int32 | JointPushOutIts, | ||
| const int32 | CollisionPushOutIts | ||
| ) |
Set new iteration counts.
A negative value with leave that iteration count unchanged