|
|
| plJoltWorldModule (plWorld *pWorld) |
| |
| virtual void | Initialize () override |
| | This method is called after the constructor. A derived type can override this method to do initialization work. Typically this is the method where updates function are registered.
|
| |
| virtual void | Deinitialize () override |
| | This method is called before the destructor. A derived type can override this method to do deinitialization work.
|
| |
| virtual void | OnSimulationStarted () override |
| | This method is called at the start of the next world update when the world is simulated. This method will be called after the initialization method.
|
| |
|
JPH::PhysicsSystem * | GetJoltSystem () |
| |
|
const JPH::PhysicsSystem * | GetJoltSystem () const |
| |
|
plUInt32 | CreateObjectFilterID () |
| |
|
void | DeleteObjectFilterID (plUInt32 &ref_uiObjectFilterID) |
| |
|
plUInt32 | AllocateUserData (plJoltUserData *&out_pUserData) |
| |
|
void | DeallocateUserData (plUInt32 &ref_uiUserDataId) |
| |
|
const plJoltUserData & | GetUserData (plUInt32 uiUserDataId) const |
| |
|
void | SetGravity (const plVec3 &vObjectGravity, const plVec3 &vCharacterGravity) |
| |
| virtual plVec3 | GetGravity () const override |
| |
|
plVec3 | GetCharacterGravity () const |
| |
| virtual plUInt32 | GetCollisionLayerByName (plStringView sName) const override |
| | Searches for a collision layer with the given name and returns its index.
|
| |
| virtual bool | Raycast (plPhysicsCastResult &out_result, const plVec3 &vStart, const plVec3 &vDir, float fDistance, const plPhysicsQueryParameters ¶ms, plPhysicsHitCollection collection=plPhysicsHitCollection::Closest) const override |
| |
| virtual bool | RaycastAll (plPhysicsCastResultArray &out_results, const plVec3 &vStart, const plVec3 &vDir, float fDistance, const plPhysicsQueryParameters ¶ms) const override |
| |
| virtual bool | SweepTestSphere (plPhysicsCastResult &out_result, float fSphereRadius, const plVec3 &vStart, const plVec3 &vDir, float fDistance, const plPhysicsQueryParameters ¶ms, plPhysicsHitCollection collection=plPhysicsHitCollection::Closest) const override |
| |
| virtual bool | SweepTestBox (plPhysicsCastResult &out_result, plVec3 vBoxExtends, const plTransform &transform, const plVec3 &vDir, float fDistance, const plPhysicsQueryParameters ¶ms, plPhysicsHitCollection collection=plPhysicsHitCollection::Closest) const override |
| |
| virtual bool | SweepTestCapsule (plPhysicsCastResult &out_result, float fCapsuleRadius, float fCapsuleHeight, const plTransform &transform, const plVec3 &vDir, float fDistance, const plPhysicsQueryParameters ¶ms, plPhysicsHitCollection collection=plPhysicsHitCollection::Closest) const override |
| |
| virtual bool | OverlapTestSphere (float fSphereRadius, const plVec3 &vPosition, const plPhysicsQueryParameters ¶ms) const override |
| |
| virtual bool | OverlapTestCapsule (float fCapsuleRadius, float fCapsuleHeight, const plTransform &transform, const plPhysicsQueryParameters ¶ms) const override |
| |
| virtual void | QueryShapesInSphere (plPhysicsOverlapResultArray &out_results, float fSphereRadius, const plVec3 &vPosition, const plPhysicsQueryParameters ¶ms) const override |
| |
| virtual void | AddStaticCollisionBox (plGameObject *pObject, plVec3 vBoxSize) override |
| | Adds a static actor with a box shape to pOwner.
|
| |
| virtual void | AddFixedJointComponent (plGameObject *pOwner, const plPhysicsWorldModuleInterface::FixedJointConfig &cfg) override |
| | Adds a fixed joint to pOwner.
|
| |
| virtual plBoundingBoxSphere | GetWorldSpaceBounds (plGameObject *pOwner, plUInt32 uiCollisionLayer, plBitflags< plPhysicsShapeType > shapeTypes, bool bIncludeChildObjects) const override |
| | Gets world space bounds of a physics object if its shape type is included in shapeTypes and its collision layer interacts with uiCollisionLayer.
|
| |
|
const plSet< plJoltDynamicActorComponent * > & | GetActiveActors () const |
| |
|
const plMap< plJoltRagdollComponent *, plInt32 > & | GetActiveRagdolls () const |
| |
|
const plMap< plJoltRopeComponent *, plInt32 > & | GetActiveRopes () const |
| |
|
plArrayPtr< plJoltRagdollComponent * > | GetRagdollsPutToSleep () |
| |
|
plUInt32 | QueueBodyToAdd (JPH::Body *pBody, bool bAwake) |
| | Returns a uint32 that can be queried for completion with IsBodyStillQueuedToAdd().
|
| |
| bool | IsBodyStillQueuedToAdd (plUInt32 uiBodiesAddCounter) const |
| | Checks whether the last QueueBodyToAdd() has been processed already, or not.
|
| |
|
JPH::GroupFilter * | GetGroupFilter () const |
| |
|
JPH::GroupFilter * | GetGroupFilterIgnoreSame () const |
| |
|
void | EnableJoinedBodiesCollisions (plUInt32 uiObjectFilterID1, plUInt32 uiObjectFilterID2, bool bEnable) |
| |
|
JPH::TempAllocator * | GetTempAllocator () const |
| |
|
void | ActivateCharacterController (plJoltCharacterControllerComponent *pCharacter, bool bActivate) |
| |
|
plJoltContactListener * | GetContactListener () |
| |
|
void | CheckBreakableConstraints () |
| |
|
void | QueryGeometryInBox (const plPhysicsQueryParameters ¶ms, plBoundingBox box, plDynamicArray< plNavmeshTriangle > &out_triangles) const |
| |
|
plWorld * | GetWorld () |
| | Returns the corresponding world to this module.
|
| |
|
const plWorld * | GetWorld () const |
| | Returns the corresponding world to this module.
|
| |
|
plUInt32 | GetWorldIndex () const |
| | Same as GetWorld()->GetIndex(). Needed to break circular include dependencies.
|
| |
|
virtual const plRTTI * | GetDynamicRTTI () const |
| |
|
bool | IsInstanceOf (const plRTTI *pType) const |
| | Returns whether the type of this instance is of the given type or derived from it.
|
| |
|
template<typename T > |
| PL_ALWAYS_INLINE bool | IsInstanceOf () const |
| | Returns whether the type of this instance is of the given type or derived from it.
|
| |