#include <PhysicsManager.hpp>
◆ PhysicsManager()
| Physics::Resource::PhysicsManager::PhysicsManager |
( |
| ) |
|
◆ ~PhysicsManager()
| Physics::Resource::PhysicsManager::~PhysicsManager |
( |
| ) |
|
|
default |
◆ ActivatePhysics()
| void Physics::Resource::PhysicsManager::ActivatePhysics |
( |
| ) |
|
|
inline |
Set the physics system to be updated.
◆ DeactivatePhysics()
| void Physics::Resource::PhysicsManager::DeactivatePhysics |
( |
| ) |
|
|
inline |
Set the physics system to not be updated.
◆ GetBodyInterface()
| JPH::BodyInterface & Physics::Resource::PhysicsManager::GetBodyInterface |
( |
| ) |
|
|
inline |
Get a reference to the body interface for manipulating bodies.
- Returns
- JPH::BodyInterface&
- Note
- Use this to apply forces, impulses, or modify body properties.
◆ GetCollisionSteps()
| int Physics::Resource::PhysicsManager::GetCollisionSteps |
( |
| ) |
|
|
inline |
Get the number of collision steps.
- Returns
- int
◆ GetContactListener()
Get the contact listener, casted back as a ContactListenerImpl.
- Returns
- std::shared_ptr<Utils::ContactListenerImpl>
- Note
- This is safe because the contact listener is always created as a ContactListenerImpl.
◆ GetJobSystem()
| JPH::JobSystem * Physics::Resource::PhysicsManager::GetJobSystem |
( |
| ) |
|
|
inline |
Get a pointer to the job system.
- Returns
- JPH::JobSystem*
- Note
- A raw pointer is returned for ease of use with JoltPhysics APIs. Memory ownership is managed by the PhysicsManager.
◆ GetPhysicsSystem()
| JPH::PhysicsSystem & Physics::Resource::PhysicsManager::GetPhysicsSystem |
( |
| ) |
|
|
inline |
Get a reference to the physics system.
- Returns
- JPH::PhysicsSystem&
◆ GetTempAllocator()
| JPH::TempAllocator * Physics::Resource::PhysicsManager::GetTempAllocator |
( |
| ) |
|
|
inline |
Get a pointer to the temp allocator.
- Returns
- JPH::TempAllocator*
- Note
- A raw pointer is returned for ease of use with JoltPhysics APIs. Memory ownership is managed by the PhysicsManager.
◆ Init()
| void Physics::Resource::PhysicsManager::Init |
( |
Engine::Core & | core | ) |
|
◆ IsPhysicsActivated()
| bool Physics::Resource::PhysicsManager::IsPhysicsActivated |
( |
| ) |
const |
|
inline |
Check if the physics system should be updated.
- Returns
- true if the physics system should be updated, false otherwise.
◆ SetCollisionSteps()
| void Physics::Resource::PhysicsManager::SetCollisionSteps |
( |
int | steps | ) |
|
|
inline |
Set the number of collision steps.
- Parameters
-
- Note
- This will be used to set the number of steps in the physics system.
- Returns
- void
◆ _broadPhaseLayerInterface
| std::shared_ptr<JPH::BroadPhaseLayerInterface> Physics::Resource::PhysicsManager::_broadPhaseLayerInterface |
|
private |
◆ _collisionSteps
| int Physics::Resource::PhysicsManager::_collisionSteps = 1 |
|
private |
◆ _contactListener
| std::shared_ptr<JPH::ContactListener> Physics::Resource::PhysicsManager::_contactListener |
|
private |
◆ _factory
| std::shared_ptr<JPH::Factory> Physics::Resource::PhysicsManager::_factory |
|
private |
◆ _jobSystem
| std::shared_ptr<JPH::JobSystem> Physics::Resource::PhysicsManager::_jobSystem |
|
private |
◆ _objectLayerPairFilter
| std::shared_ptr<JPH::ObjectLayerPairFilter> Physics::Resource::PhysicsManager::_objectLayerPairFilter |
|
private |
◆ _objectVsBroadPhaseLayerFilter
| std::shared_ptr<JPH::ObjectVsBroadPhaseLayerFilter> Physics::Resource::PhysicsManager::_objectVsBroadPhaseLayerFilter |
|
private |
◆ _physicsSystem
| std::shared_ptr<JPH::PhysicsSystem> Physics::Resource::PhysicsManager::_physicsSystem |
|
private |
◆ _shouldUpdatePhysics
| bool Physics::Resource::PhysicsManager::_shouldUpdatePhysics = true |
|
private |
◆ _tempAllocator
| std::shared_ptr<JPH::TempAllocator> Physics::Resource::PhysicsManager::_tempAllocator |
|
private |
The documentation for this class was generated from the following files: