Panda3D
|
Defines a cylinder inside of which all forces are tangential to the theta of the particle wrt the z-axis in local coord. More...
#include "linearCylinderVortexForce.h"
Public Member Functions | |
LinearCylinderVortexForce (float radius=1.0f, float length=0.0f, float coef=1.0f, float a=1.0f, bool md=false) | |
Simple Constructor. | |
LinearCylinderVortexForce (const LinearCylinderVortexForce ©) | |
copy Constructor | |
virtual | ~LinearCylinderVortexForce () |
Destructor. | |
virtual TypeHandle | force_init_type () |
float | get_coef () const |
float | get_length () const |
float | get_radius () const |
virtual TypeHandle | get_type () const |
virtual void | output (ostream &out) const |
Write a string representation of this instance to <out>. | |
void | set_coef (float coef) |
void | set_length (float length) |
void | set_radius (float radius) |
virtual void | write (ostream &out, unsigned int indent=0) const |
Write a string representation of this instance to <out>. | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. |
Defines a cylinder inside of which all forces are tangential to the theta of the particle wrt the z-axis in local coord.
space. This happens by assigning the force a node by which the cylinder is transformed. Be warned- this will suck anything that it can reach directly into orbit and will NOT let go.
Definition at line 30 of file linearCylinderVortexForce.h.
LinearCylinderVortexForce::LinearCylinderVortexForce | ( | float | radius = 1.0f , |
float | length = 0.0f , |
||
float | coef = 1.0f , |
||
float | a = 1.0f , |
||
bool | md = false |
||
) |
Simple Constructor.
Definition at line 27 of file linearCylinderVortexForce.cxx.
LinearCylinderVortexForce::LinearCylinderVortexForce | ( | const LinearCylinderVortexForce & | copy | ) |
copy Constructor
Definition at line 39 of file linearCylinderVortexForce.cxx.
LinearCylinderVortexForce::~LinearCylinderVortexForce | ( | ) | [virtual] |
Destructor.
Definition at line 52 of file linearCylinderVortexForce.cxx.
static void LinearCylinderVortexForce::init_type | ( | ) | [inline, static] |
This function is declared non-inline to work around a compiler bug in g++ 2.96.
Making it inline seems to cause problems in the optimizer.
Reimplemented from LinearForce.
Definition at line 64 of file linearCylinderVortexForce.h.
References LinearForce::init_type().
void LinearCylinderVortexForce::output | ( | ostream & | out | ) | const [virtual] |
Write a string representation of this instance to <out>.
Reimplemented from LinearForce.
Definition at line 136 of file linearCylinderVortexForce.cxx.
void LinearCylinderVortexForce::write | ( | ostream & | out, |
unsigned int | indent = 0 |
||
) | const [virtual] |
Write a string representation of this instance to <out>.
Reimplemented from LinearForce.
Definition at line 149 of file linearCylinderVortexForce.cxx.