Panda3D
|
Repellant force. More...
Public Types | |
enum | FalloffType { FTONEOVERR = 0, FTONEOVERRSQUARED = 1, FTONEOVERRCUBED = 2 } |
Public Member Functions | |
LinearSourceForce () | |
Simple constructor. | |
LinearSourceForce (Point3 const p, FalloffType f, float r, float a, bool mass) | |
Simple constructor. | |
LinearSourceForce (Point3 const p, FalloffType f, float r) | |
Simple constructor. | |
LinearSourceForce (LinearSourceForce const copy) | |
copy constructor | |
LinearSourceForce (Point3 const p, FalloffType f, float r, float a) | |
Simple constructor. | |
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, unsigned int indent) | |
Write a string representation of this instance to <out>. | |
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>. | |
Static Public Member Functions | |
static TypeHandle | getClassType () |
Repellant force.
enum FalloffType [inherited] |
Simple constructor.
LinearSourceForce | ( | Point3 const | p, |
FalloffType | f, | ||
float | r, | ||
float | a, | ||
bool | mass | ||
) |
Simple constructor.
LinearSourceForce | ( | Point3 const | p, |
FalloffType | f, | ||
float | r, | ||
float | a | ||
) |
Simple constructor.
LinearSourceForce | ( | Point3 const | p, |
FalloffType | f, | ||
float | r | ||
) |
Simple constructor.
LinearSourceForce | ( | LinearSourceForce const | copy | ) |
copy constructor
bool getActive | ( | ) | [inherited] |
float getAmplitude | ( | ) | [inherited] |
static TypeHandle getClassType | ( | ) | [static] |
Reimplemented from LinearDistanceForce.
FalloffType getFalloffType | ( | ) | [inherited] |
falloff_type query
Point3 getForceCenter | ( | ) | [inherited] |
force_center query
ForceNode getForceNode | ( | ) | [inherited] |
NodePath getForceNodePath | ( | ) | [inherited] |
bool getMassDependent | ( | ) | [inherited] |
float getRadius | ( | ) | [inherited] |
radius query
float getScalarTerm | ( | ) | [inherited] |
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 | ) | [inherited] |
falloff_type encapsulating wrap
setForceCenter | ( | Point3 const | p | ) | [inherited] |
set the force center
setMassDependent | ( | bool | m | ) | [inherited] |
setRadius | ( | float | r | ) | [inherited] |
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 | ) | [inherited] |
Write a string representation of this instance to <out>.
Reimplemented from BaseForce.
write | ( | ostream | out, |
unsigned int | indent | ||
) | [inherited] |
Write a string representation of this instance to <out>.