step/stepcore
StepCore::WeightForce Class Reference
[Physical forces]
#include <gravitation.h>
Inheritance diagram for StepCore::WeightForce:

Detailed Description
Weight force (constant gravitational force).The force acts between on massive bodies (currently only Particle) and equals:
where:
is Particle::mass
is WeightForce::weightConst
- Todo:
- Add interface for massive bodies, support bodies with distributed mass
Definition at line 145 of file gravitation.h.
Public Member Functions | |
| void | calcForce (bool calcVariances) |
| void | setWeightConst (double weightConst) |
| double | weightConst () const |
| WeightForce (double weightConst=Constants::WeightAccel) | |
| WeightForceErrors * | weightForceErrors () |
Protected Member Functions | |
| ObjectErrors * | createObjectErrors () |
Protected Attributes | |
| double | _weightConst |
Constructor & Destructor Documentation
| StepCore::WeightForce::WeightForce | ( | double | weightConst = Constants::WeightAccel |
) |
Member Function Documentation
| void StepCore::WeightForce::calcForce | ( | bool | calcVariances | ) | [virtual] |
Calculate force.
Bodies can be accessed through this->world()->bodies()
Implements StepCore::Force.
Definition at line 106 of file gravitation.cc.
| ObjectErrors* StepCore::WeightForce::createObjectErrors | ( | ) | [inline, protected, virtual] |
| void StepCore::WeightForce::setWeightConst | ( | double | weightConst | ) | [inline] |
| double StepCore::WeightForce::weightConst | ( | ) | const [inline] |
| WeightForceErrors* StepCore::WeightForce::weightForceErrors | ( | ) | [inline] |
Member Data Documentation
double StepCore::WeightForce::_weightConst [protected] |
Definition at line 167 of file gravitation.h.
The documentation for this class was generated from the following files:
KDE 4.1 API Reference