Lysa  0.0
Lysa 3D Engine
PhysXPhysicsWorld Class Reference

Detailed Description

PhysX implementation of PhysicsScene. Wraps a PxScene and provides step/update, debug rendering and gravity query.

+ Inheritance diagram for PhysXPhysicsWorld:

Public Member Functions

 PhysXPhysicsWorld (physx::PxPhysics *, const DebugConfiguration &debugConfig)
 
void update (float deltaTime) override
 
void debug (DebugRenderer &debugRenderer) override
 
float3 getGravity () const override
 
auto getScene () const
 
auto getControllerManager () const
 
 ~PhysXPhysicsWorld () override
 
- Public Member Functions inherited from PhysicsWorld
virtual ~PhysicsWorld () = default
 

Constructor & Destructor Documentation

PhysXPhysicsWorld ( physx::PxPhysics *  ,
const DebugConfiguration &  debugConfig 
)
~PhysXPhysicsWorld ( )
override

Destroys PhysX objects owned by the scene.

Member Function Documentation

void debug ( DebugRenderer debugRenderer)
overridevirtual

Emits debug primitives (when enabled) via the provided renderer.

Implements lysa::PhysicsWorld::debug()

auto getControllerManager ( ) const
inline

Returns the character controller manager associated with the scene.

float3 getGravity ( ) const
overridevirtual

Returns the current gravity vector configured on the scene.

Implements lysa::PhysicsWorld::getGravity()

auto getScene ( ) const
inline

Exposes the underlying PxScene pointer for low‑level operations.

void update ( float  deltaTime)
overridevirtual

Advances the PhysX simulation by deltaTime seconds.

Implements lysa::PhysicsWorld::update()