Panda3D
Public Types | Public Member Functions | Static Public Member Functions

LinearSinkForce Class Reference

Attractor force. More...

Inheritance diagram for LinearSinkForce:
LinearDistanceForce LinearForce BaseForce

List of all members.

Public Types

enum  FalloffType { FTONEOVERR = 0, FTONEOVERRSQUARED = 1, FTONEOVERRCUBED = 2 }

Public Member Functions

 LinearSinkForce ()
 Simple constructor.
 LinearSinkForce (Point3 const p, FalloffType f, float r, float a, bool m)
 Simple constructor.
 LinearSinkForce (Point3 const p, FalloffType f, float r)
 Simple constructor.
 LinearSinkForce (LinearSinkForce const copy)
 copy constructor
 LinearSinkForce (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 ()

Detailed Description

Attractor force.

Think black hole.


Member Enumeration Documentation

enum FalloffType [inherited]
Enumerator:
FTONEOVERR 
FTONEOVERRSQUARED 
FTONEOVERRCUBED 

Constructor & Destructor Documentation

Simple constructor.

LinearSinkForce ( Point3 const  p,
FalloffType  f,
float  r,
float  a,
bool  m 
)

Simple constructor.

LinearSinkForce ( Point3 const  p,
FalloffType  f,
float  r,
float  a 
)

Simple constructor.

LinearSinkForce ( Point3 const  p,
FalloffType  f,
float  r 
)

Simple constructor.

copy constructor


Member Function Documentation

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>.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties