|
ToyMaker Game Engine 0.0.2
ToyMaker is a game engine developed and maintained by Zoheb Shujauddin.
|
The ToyMaker::PhysicsSystem is responsible for applying physics updates each simulation frame to all eligible entities, especially those that are tagged with ToyMaker::PhysicsState::MODE_DYNAMIC. Additionally, it watches for and reports collision events detected between physics entities during each simulation frame.
In order for an entity to be eligible for the physics system, it must hold the following components:
Mainly, aside from setting object positions through ToyMaker::ObjectBounds rather than ToyMaker::Placement, one interacts with the physics system through the ToyMaker::PhysicsState component.
Practical examples of this system may be found under Examples/.
It enables the creation of games and applications that require more complex physical interactions between objects.