Engine
Verlet Class Reference

Implementation of velocity Verlet method for solving Newton's Laws. More...

#include <verlet.h>

Inheritance diagram for Verlet:
TimeIntegrator

Public Member Functions

 Verlet ()
 
 Verlet (GLfloat dt)
 
- Public Member Functions inherited from TimeIntegrator
void StepForward (const NetForceAccumulator &net_force_accumulator, const std::vector< std::shared_ptr< PhysicsEntity >> &entity_ptrs, const std::shared_ptr< PhysicsEntity > entity_ptr)
 
GLfloat GetStepSize ()
 

Additional Inherited Members

- Protected Attributes inherited from TimeIntegrator
GLfloat m_dt
 

Detailed Description

Implementation of velocity Verlet method for solving Newton's Laws.

Constructor & Destructor Documentation

Verlet::Verlet ( )

Constructs an instance of Verlet with a default grid size

Verlet::Verlet ( GLfloat  dt)

Constructs an instance of Verlet with the provided grid size

Parameters
dtdifference between two points on the grid

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