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

Simulate gravity force towards the negative y world axis. More...

#include <PhysicWorld.hpp>

Inheritance diagram for GravitySolver:
Collaboration diagram for GravitySolver:

Public Member Functions

virtual void solve () override
 This method is executed at every physic simulation step.
 GravitySolver (PhysicWorld &world)
 Instance basic GravitySolver object.
Public Member Functions inherited from Solver
 Solver (PhysicWorld &world)
 Instances basic Solver.

Additional Inherited Members

Public Attributes inherited from Solver
PhysicWorldworld
 the reference to the PhysicWorld

Detailed Description

Simulate gravity force towards the negative y world axis.

Constructor & Destructor Documentation

◆ GravitySolver()

GravitySolver::GravitySolver ( PhysicWorld & world)
inline

Instance basic GravitySolver object.

Parameters
worldthe physic world to be attached
See also
Solver

Member Function Documentation

◆ solve()

void GravitySolver::solve ( )
overridevirtual

This method is executed at every physic simulation step.

Note
This method must be overrided in the child class.

Reimplemented from Solver.


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