![]() |
Lysa
0.0
Lysa 3D Engine
|
Physics world interface.
A PhysicsWorld encapsulates the simulation world (bodies, constraints, queries) and advances it with a fixed time step. Concrete implementations are provided by each backend (Jolt / PhysX).
Inheritance diagram for PhysicsWorld:Public Member Functions | |
| virtual void | update (float deltaTime) = 0 |
| virtual void | debug (DebugRenderer &debugRenderer) = 0 |
| virtual float3 | getGravity () const = 0 |
| virtual | ~PhysicsWorld () = default |
|
virtualdefault |
|
pure virtual |
Emits debug visualization primitives to the provided DebugRenderer. Used to display bodies, shapes, contacts, etc. when enabled.
Implemented in lysa::JoltPhysicsWorld::debug(), lysa::PhysXPhysicsWorld::debug()
|
pure virtual |
Returns the current gravity vector applied to dynamic bodies.
Implemented in lysa::JoltPhysicsWorld::getGravity(), lysa::PhysXPhysicsWorld::getGravity()
|
pure virtual |
Steps the physics simulation by the given delta time (seconds). Implementations may internally clamp or subdivide the step.
Implemented in lysa::JoltPhysicsWorld::update(), lysa::PhysXPhysicsWorld::update()