Panda3D
|
Simple directed vector force. More...
Public Member Functions | |
LinearControlForce (LinearControlForce const copy) | |
Copy Constructor. | |
LinearControlForce (PhysicsObject const po, float a, bool mass) | |
Vector Constructor. | |
LinearControlForce (PhysicsObject const po) | |
Vector Constructor. | |
LinearControlForce () | |
Vector Constructor. | |
LinearControlForce (PhysicsObject const po, float a) | |
Vector Constructor. | |
clearPhysicsObject () | |
encapsulating wrapper | |
bool | getActive () |
float | getAmplitude () |
ForceNode | getForceNode () |
NodePath | getForceNodePath () |
Vec3 | getLocalVector () |
bool | getMassDependent () |
PhysicsObject const | getPhysicsObject () |
piecewise encapsulating wrapper | |
Vec3 | getVector (PhysicsObject const po) |
Vec3 | getVectorMasks () |
bool | isLinear () |
LinearForce | makeCopy () |
output (ostream out) | |
Write a string representation of this instance to <out>. | |
setActive (bool active) | |
setAmplitude (float a) | |
setMassDependent (bool m) | |
setPhysicsObject (PhysicsObject const po) | |
encapsulating wrapper | |
setVector (Vec3 const v) | |
encapsulating wrapper | |
setVector (float x, float y, float z) | |
piecewise encapsulating wrapper | |
setVectorMasks (bool x, bool y, bool z) | |
write (ostream out, int indent_level) | |
Write a string representation of this instance to <out>. | |
write (ostream out, unsigned int indent) | |
Write a string representation of this instance to <out>. | |
write (ostream out) | |
Write a string representation of this instance to <out>. | |
Static Public Member Functions | |
static TypeHandle | getClassType () |
Simple directed vector force.
This force is different from the others in that it can be global and still only affect a single object. That might not make sense for a physics simulation, but it's very handy for a game. I.e. this is the force applied by user on the selected object.
LinearControlForce | ( | LinearControlForce const | copy | ) |
Copy Constructor.
LinearControlForce | ( | PhysicsObject const | po, |
float | a, | ||
bool | mass | ||
) |
Vector Constructor.
LinearControlForce | ( | PhysicsObject const | po, |
float | a | ||
) |
Vector Constructor.
LinearControlForce | ( | PhysicsObject const | po | ) |
Vector Constructor.
Vector Constructor.
clearPhysicsObject | ( | ) |
encapsulating wrapper
bool getActive | ( | ) | [inherited] |
float getAmplitude | ( | ) | [inherited] |
static TypeHandle getClassType | ( | ) | [static] |
Reimplemented from LinearForce.
ForceNode getForceNode | ( | ) | [inherited] |
NodePath getForceNodePath | ( | ) | [inherited] |
Vec3 getLocalVector | ( | ) |
bool getMassDependent | ( | ) | [inherited] |
PhysicsObject const getPhysicsObject | ( | ) |
piecewise encapsulating wrapper
Vec3 getVector | ( | PhysicsObject const | po | ) | [inherited] |
Vec3 getVectorMasks | ( | ) | [inherited] |
bool isLinear | ( | ) | [inherited] |
LinearForce makeCopy | ( | ) | [inherited] |
output | ( | ostream | out | ) | [inherited] |
Write a string representation of this instance to <out>.
setActive | ( | bool | active | ) | [inherited] |
setAmplitude | ( | float | a | ) | [inherited] |
setMassDependent | ( | bool | m | ) | [inherited] |
setPhysicsObject | ( | PhysicsObject const | po | ) |
encapsulating wrapper
setVector | ( | Vec3 const | v | ) |
encapsulating wrapper
setVector | ( | float | x, |
float | y, | ||
float | z | ||
) |
piecewise encapsulating wrapper
setVectorMasks | ( | bool | x, |
bool | y, | ||
bool | z | ||
) | [inherited] |
write | ( | ostream | out, |
int | indent_level | ||
) | [inherited] |
Write a string representation of this instance to <out>.
write | ( | ostream | out, |
unsigned int | indent | ||
) | [inherited] |
Write a string representation of this instance to <out>.
write | ( | ostream | out | ) | [inherited] |
Write a string representation of this instance to <out>.
Reimplemented from BaseForce.