Panda3D
Public Member Functions | Static Public Member Functions

LinearVectorForce Class Reference

Simple directed vector force. More...

Inheritance diagram for LinearVectorForce:
LinearForce BaseForce

List of all members.

Public Member Functions

 LinearVectorForce (Vec3 const vec, float a, bool mass)
 Vector Constructor.
 LinearVectorForce (Vec3 const vec, float a)
 Vector Constructor.
 LinearVectorForce (LinearVectorForce const copy)
 Copy Constructor.
 LinearVectorForce (float x, float y)
 Default/Piecewise constructor.
 LinearVectorForce (float x)
 Default/Piecewise constructor.
 LinearVectorForce (float x, float y, float z, float a, bool mass)
 Default/Piecewise constructor.
 LinearVectorForce ()
 Default/Piecewise constructor.
 LinearVectorForce (Vec3 const vec)
 Vector Constructor.
 LinearVectorForce (float x, float y, float z, float a)
 Default/Piecewise constructor.
 LinearVectorForce (float x, float y, float z)
 Default/Piecewise constructor.
bool getActive ()
float getAmplitude ()
ForceNode getForceNode ()
NodePath getForceNodePath ()
Vec3 getLocalVector ()
bool getMassDependent ()
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)
 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, unsigned int indent)
 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)
 Write a string representation of this instance to <out>.

Static Public Member Functions

static TypeHandle getClassType ()

Detailed Description

Simple directed vector force.

Suitable for gravity, non-turbulent wind, etc...


Constructor & Destructor Documentation

LinearVectorForce ( Vec3 const  vec,
float  a,
bool  mass 
)

Vector Constructor.

LinearVectorForce ( Vec3 const  vec,
float  a 
)

Vector Constructor.

LinearVectorForce ( Vec3 const  vec)

Vector Constructor.

Copy Constructor.

LinearVectorForce ( float  x,
float  y,
float  z,
float  a,
bool  mass 
)

Default/Piecewise constructor.

LinearVectorForce ( float  x,
float  y,
float  z,
float  a 
)

Default/Piecewise constructor.

LinearVectorForce ( float  x,
float  y,
float  z 
)

Default/Piecewise constructor.

LinearVectorForce ( float  x,
float  y 
)

Default/Piecewise constructor.

LinearVectorForce ( float  x)

Default/Piecewise constructor.

Default/Piecewise constructor.


Member Function Documentation

bool getActive ( ) [inherited]
float getAmplitude ( ) [inherited]
static TypeHandle getClassType ( ) [static]

Reimplemented from LinearForce.

ForceNode getForceNode ( ) [inherited]
NodePath getForceNodePath ( ) [inherited]
Vec3 getLocalVector ( )
bool getMassDependent ( ) [inherited]
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]
setVector ( float  x,
float  y,
float  z 
)

piecewise encapsulating wrapper

setVector ( Vec3 const  v)

encapsulating wrapper

setVectorMasks ( bool  x,
bool  y,
bool  z 
) [inherited]
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.

write ( ostream  out,
int  indent_level 
) [inherited]

Write a string representation of this instance to <out>.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties