Engine
ConstantForceGenerator Class Reference

A constant force throughout all space. More...

#include <constant_force.h>

Public Member Functions

 ConstantForceGenerator ()
 
 ConstantForceGenerator (Vector3Gf accel)
 
 ~ConstantForceGenerator ()
 
void AccumulateForce (std::shared_ptr< PhysicsEntity > entity, Vector3Gf &F) const
 

Detailed Description

A constant force throughout all space.

Constructor & Destructor Documentation

ConstantForceGenerator::ConstantForceGenerator ( )

Builds a ConstantForceGenerator with a zero acceleration at all points in space.

ConstantForceGenerator::ConstantForceGenerator ( Vector3Gf  accel)

Builds a ConstantForceGenerator with a given acceleration at all points in space

Parameters
accelacceleration vector for the force
ConstantForceGenerator::~ConstantForceGenerator ( )

Deconstructs a ConstantForceGenerator

Member Function Documentation

void ConstantForceGenerator::AccumulateForce ( std::shared_ptr< PhysicsEntity entity,
Vector3Gf &  F 
) const

Adds a constant force determined by the mass of the provided entity and the stored acceleration vector

Parameters
entityEntity whom the force will be applied against
FForce vector that will accumulate the constant force represented by this instance

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