Lysa  0.0
Lysa 3D Engine
PhysXPhysicsScene Class Reference

Detailed Description

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

+ Inheritance diagram for PhysXPhysicsScene:

Public Member Functions

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

Constructor & Destructor Documentation

PhysXPhysicsScene ( physx::PxPhysics *  ,
const DebugConfig debugConfig 
)
~PhysXPhysicsScene ( )
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::PhysicsScene::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::PhysicsScene::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::PhysicsScene::update()