CG-Project2
|
A Solver defines a generic behaviour in a Physic World. More...
#include <PhysicWorld.hpp>
Public Member Functions | |
virtual void | solve () |
This method is executed at every physic simulation step. | |
Solver (PhysicWorld &world) | |
Instances basic Solver. |
Public Attributes | |
PhysicWorld & | world |
the reference to the PhysicWorld |
A Solver defines a generic behaviour in a Physic World.
It manipulates the PhysicComponent of an entity during the simulation.
A Solver need to be attached to a PhysicWorld to work.
|
inline |
Instances basic Solver.
world | reference of the PhysicWorld where this solver operates |
|
inlinevirtual |
This method is executed at every physic simulation step.
Reimplemented in CollisionSolver, GravitySolver, and PositionSolver.