Panda3D
|
Pure virtual class for sinks and sources. More...
Public Types | |
enum | FalloffType { FTONEOVERR = 0, FTONEOVERRSQUARED = 1, FTONEOVERRCUBED = 2 } |
Public Member Functions | |
bool | getActive () |
float | getAmplitude () |
FalloffType | getFalloffType () |
falloff_type query | |
Point3 | getForceCenter () |
force_center query | |
ForceNode | getForceNode () |
NodePath | getForceNodePath () |
bool | getMassDependent () |
float | getRadius () |
radius query | |
float | getScalarTerm () |
calculate the term based on falloff | |
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) | |
setFalloffType (FalloffType ft) | |
falloff_type encapsulating wrap | |
setForceCenter (Point3 const p) | |
set the force center | |
setMassDependent (bool m) | |
setRadius (float r) | |
set the radius | |
setVectorMasks (bool x, bool y, bool z) | |
write (ostream out) | |
Write a string representation of this instance to <out>. | |
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>. | |
Static Public Member Functions | |
static TypeHandle | getClassType () |
Pure virtual class for sinks and sources.
enum FalloffType |
bool getActive | ( | ) | [inherited] |
float getAmplitude | ( | ) | [inherited] |
static TypeHandle getClassType | ( | ) | [static] |
Reimplemented from LinearForce.
Reimplemented in LinearSinkForce, and LinearSourceForce.
FalloffType getFalloffType | ( | ) |
falloff_type query
Point3 getForceCenter | ( | ) |
force_center query
ForceNode getForceNode | ( | ) | [inherited] |
NodePath getForceNodePath | ( | ) | [inherited] |
bool getMassDependent | ( | ) | [inherited] |
float getRadius | ( | ) |
radius query
float getScalarTerm | ( | ) |
calculate the term based on falloff
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] |
setFalloffType | ( | FalloffType | ft | ) |
falloff_type encapsulating wrap
setForceCenter | ( | Point3 const | p | ) |
set the force center
setMassDependent | ( | bool | m | ) | [inherited] |
setRadius | ( | float | r | ) |
set the radius
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.