#include <gravitation.h>
Inheritance diagram for WeightForce:

Public Member Functions | |
| WeightForce (double weightConst=Constants::WeightAccel) | |
| void | calcForce () |
| double | weightConst () const |
| void | setWeightConst (double weightConst) |
| virtual void | worldItemRemoved (Item *item) |
| virtual void | setWorld (World *world) |
| World * | world () const |
| const QString & | name () const |
| void | setName (const QString &name) |
The force acts between on massive bodies (currently only Particle) and equals:
where:
is Particle::mass
is WeightForce::weightConst
| WeightForce | ( | double | weightConst = Constants::WeightAccel |
) |
Constructs WeightForce
| void calcForce | ( | ) | [virtual] |
| double weightConst | ( | ) | const [inline] |
Get weight constant
| void setWeightConst | ( | double | weightConst | ) | [inline] |
Set weight constant
| virtual void worldItemRemoved | ( | Item * | item | ) | [inline, virtual, inherited] |
| virtual void setWorld | ( | World * | world | ) | [inline, virtual, inherited] |
| World* world | ( | ) | const [inline, inherited] |
| const QString& name | ( | ) | const [inline, inherited] |
Returns name of the object
| void setName | ( | const QString & | name | ) | [inline, inherited] |
Set name of the object
1.5.1