CG-Project2
Loading...
Searching...
No Matches
Solver Class Reference

A Solver defines a generic behaviour in a Physic World. More...

#include <PhysicWorld.hpp>

Inheritance diagram for Solver:
Collaboration diagram for Solver:

Public Member Functions

virtual void solve ()
 This method is executed at every physic simulation step.
 Solver (PhysicWorld &world)
 Instances basic Solver.

Public Attributes

PhysicWorldworld
 the reference to the PhysicWorld

Detailed Description

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.

Note
This class needs to be extended by a specific solver.

Constructor & Destructor Documentation

◆ Solver()

Solver::Solver ( PhysicWorld & world)
inline

Instances basic Solver.

Parameters
worldreference of the PhysicWorld where this solver operates

Member Function Documentation

◆ solve()

virtual void Solver::solve ( )
inlinevirtual

This method is executed at every physic simulation step.

Note
This method must be overrided in the child class.

Reimplemented in CollisionSolver, GravitySolver, and PositionSolver.


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