CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::JoltPhysicsSystem Class Referencefinal

#include <CeresEngine/Physics/Jolt/JoltPhysicsSystem.hpp>

Inheritance diagram for CeresEngine::JoltPhysicsSystem:
CeresEngine::PhysicsSystem CeresEngine::System< PhysicsSystem, EntityObjectSet< PhysicsWorld, StaticBody, RigidBody, SoftBody >, ComponentSet<>, EntityActionSet< ApplyForce > >

Public Member Functions

 JoltPhysicsSystem ()
 
 ~JoltPhysicsSystem () noexcept final
 
void update (double time) final
 Updates the system.
 
- Public Member Functions inherited from CeresEngine::PhysicsSystem
 PhysicsSystem ()
 

Private Member Functions

void didAdd (const PhysicsWorld &world) noexcept final
 A notification dispatched by the SystemManager to a system.
 
void didRemove (const PhysicsWorld &world) noexcept final
 A notification dispatched by the SystemManager to a system.
 
void didAdd (const StaticBody &staticBody) noexcept final
 A notification dispatched by the SystemManager to a system.
 
void didRemove (const StaticBody &staticBody) noexcept final
 A notification dispatched by the SystemManager to a system.
 
void didAdd (const RigidBody &rigidBody) noexcept final
 A notification dispatched by the SystemManager to a system.
 
void didRemove (const RigidBody &rigidBody) noexcept final
 A notification dispatched by the SystemManager to a system.
 
void didAdd (const SoftBody &softBody) noexcept final
 A notification dispatched by the SystemManager to a system.
 
void didRemove (const SoftBody &softBody) noexcept final
 A notification dispatched by the SystemManager to a system.
 
void act (Entity &entity, const ApplyForce &action) final
 

Private Attributes

UPtr< Pimpl > m
 

Constructor & Destructor Documentation

◆ JoltPhysicsSystem()

CeresEngine::JoltPhysicsSystem::JoltPhysicsSystem ( )

◆ ~JoltPhysicsSystem()

CeresEngine::JoltPhysicsSystem::~JoltPhysicsSystem ( )
finalnoexcept

Member Function Documentation

◆ act()

void CeresEngine::JoltPhysicsSystem::act ( Entity entity,
const ApplyForce action 
)
finalprivate

◆ didAdd() [1/4]

void CeresEngine::JoltPhysicsSystem::didAdd ( const PhysicsWorld world)
finalprivatenoexcept

A notification dispatched by the SystemManager to a system.

This notification is dispatched once a new entity matching the EO criteria is created (either by creating it or by adding all components required).

Parameters
entityThe entity object.

◆ didAdd() [2/4]

void CeresEngine::JoltPhysicsSystem::didAdd ( const RigidBody rigidBody)
finalprivatenoexcept

A notification dispatched by the SystemManager to a system.

This notification is dispatched once a new entity matching the EO criteria is created (either by creating it or by adding all components required).

Parameters
entityThe entity object.

◆ didAdd() [3/4]

void CeresEngine::JoltPhysicsSystem::didAdd ( const SoftBody softBody)
finalprivatenoexcept

A notification dispatched by the SystemManager to a system.

This notification is dispatched once a new entity matching the EO criteria is created (either by creating it or by adding all components required).

Parameters
entityThe entity object.

◆ didAdd() [4/4]

void CeresEngine::JoltPhysicsSystem::didAdd ( const StaticBody staticBody)
finalprivatenoexcept

A notification dispatched by the SystemManager to a system.

This notification is dispatched once a new entity matching the EO criteria is created (either by creating it or by adding all components required).

Parameters
entityThe entity object.

◆ didRemove() [1/4]

void CeresEngine::JoltPhysicsSystem::didRemove ( const PhysicsWorld world)
finalprivatenoexcept

A notification dispatched by the SystemManager to a system.

This notification is dispatched once an entity that previously matched the EO criteria is destroyed (either by destroying it or by removing one of the required components).

Parameters
entityThe entity object.

◆ didRemove() [2/4]

void CeresEngine::JoltPhysicsSystem::didRemove ( const RigidBody rigidBody)
finalprivatenoexcept

A notification dispatched by the SystemManager to a system.

This notification is dispatched once an entity that previously matched the EO criteria is destroyed (either by destroying it or by removing one of the required components).

Parameters
entityThe entity object.

◆ didRemove() [3/4]

void CeresEngine::JoltPhysicsSystem::didRemove ( const SoftBody softBody)
finalprivatenoexcept

A notification dispatched by the SystemManager to a system.

This notification is dispatched once an entity that previously matched the EO criteria is destroyed (either by destroying it or by removing one of the required components).

Parameters
entityThe entity object.

◆ didRemove() [4/4]

void CeresEngine::JoltPhysicsSystem::didRemove ( const StaticBody staticBody)
finalprivatenoexcept

A notification dispatched by the SystemManager to a system.

This notification is dispatched once an entity that previously matched the EO criteria is destroyed (either by destroying it or by removing one of the required components).

Parameters
entityThe entity object.

◆ update()

void CeresEngine::JoltPhysicsSystem::update ( double  time)
final

Updates the system.

Parameters
timeThe amount of time elapsed since the last update

Member Data Documentation

◆ m

UPtr<Pimpl> CeresEngine::JoltPhysicsSystem::m
private

The documentation for this class was generated from the following file: