Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

PhysicsWorld Class Reference

description of PhysicsWorld More...

#include <PhysicsWorld.h>

Inheritance diagram for PhysicsWorld:

Detailed Description

description of PhysicsWorld

Definition at line 15 of file PhysicsWorld.h.

List of all members.

Public Types

typedef btPoint2PointConstraint PointConstraint
typedef std::map
< LinkComponent *, PhysicsBody * >
::const_iterator 
body_iterator

Public Member Functions

 PhysicsWorld ()
 ~PhysicsWorld ()
size_t step (float t)
size_t step (float t, float freq)
size_t step (float t, unsigned int max, float freq)
PhysicsBodygetBody (const LinkComponent &info)
class btDiscreteDynamicsWorld & getWorld ()
PointConstraintaddPointConstraint (PhysicsBody *body, const fmat::Column< 3 > &worldPt)
void removeConstraint (PointConstraint *cn)
body_iterator begin () const
 return an STL const_iterator to the first entry (note implicit conversion to specialized const_iterator)
body_iterator end () const
 return the one-past-end const_iterator (note implicit conversion to specialized const_iterator)
void updateControllers (float t)
 called by physics internal step callback

Public Attributes

plist::Primitive< floatgravity
plist::Primitive< floatspaceScale
plist::Primitive< floatmassScale
plist::Primitive< unsigned int > solverIter
plist::Primitive< floaterp
plist::Primitive< bool > splitImpulse
plist::Primitive< floatlinearDamping
plist::Primitive< floatangularDamping
plist::Primitive< floatcollisionMargin

Protected Member Functions

void initWorld ()
void updateGravity ()
void updateSolverInfo ()

Protected Attributes

class
btDefaultCollisionConfiguration * 
collisionConfiguration
class btCollisionDispatcher * dispatcher
class btBroadphaseInterface * broadphase
class
btSequentialImpulseConstraintSolver * 
solver
class btDiscreteDynamicsWorld * dynamicsWorld
class CollisionFilter * filter
std::map< LinkComponent
*, PhysicsBody * > 
bodies
std::set< MotorController * > motorControllers
plist::PrimitiveCallbackMember
< PhysicsWorld
gravityListener
plist::PrimitiveCallbackMember
< PhysicsWorld
spaceScaleListener
plist::PrimitiveCallbackMember
< PhysicsWorld
solverIterListener
plist::PrimitiveCallbackMember
< PhysicsWorld
erpListener

Private Member Functions

 PhysicsWorld (const PhysicsWorld &)
PhysicsWorldoperator= (const PhysicsWorld &)

Friends

class PhysicsBody
class PhysicsState

Member Typedef Documentation

Definition at line 64 of file PhysicsWorld.h.

typedef btPoint2PointConstraint PhysicsWorld::PointConstraint

Definition at line 60 of file PhysicsWorld.h.


Constructor & Destructor Documentation

PhysicsWorld::PhysicsWorld (  ) 

Definition at line 19 of file PhysicsWorld.h.

PhysicsWorld::~PhysicsWorld (  ) 
PhysicsWorld::PhysicsWorld ( const PhysicsWorld  )  [private]

Member Function Documentation

PointConstraint* PhysicsWorld::addPointConstraint ( PhysicsBody body,
const fmat::Column< 3 > &  worldPt 
)
body_iterator PhysicsWorld::begin (  )  const

return an STL const_iterator to the first entry (note implicit conversion to specialized const_iterator)

Reimplemented from plist::DictionaryOf< PO, Alloc >.

Definition at line 65 of file PhysicsWorld.h.

body_iterator PhysicsWorld::end (  )  const

return the one-past-end const_iterator (note implicit conversion to specialized const_iterator)

Reimplemented from plist::DictionaryOf< PO, Alloc >.

Definition at line 66 of file PhysicsWorld.h.

PhysicsBody* PhysicsWorld::getBody ( const LinkComponent info  ) 
class btDiscreteDynamicsWorld& PhysicsWorld::getWorld (  ) 

Definition at line 58 of file PhysicsWorld.h.

void PhysicsWorld::initWorld (  )  [protected]

Referenced by PhysicsWorld().

PhysicsWorld& PhysicsWorld::operator= ( const PhysicsWorld  )  [private]
void PhysicsWorld::removeConstraint ( PointConstraint cn  ) 
size_t PhysicsWorld::step ( float  t,
unsigned int  max,
float  freq 
)
size_t PhysicsWorld::step ( float  t,
float  freq 
)

Definition at line 54 of file PhysicsWorld.h.

Referenced by step().

size_t PhysicsWorld::step ( float  t  ) 
void PhysicsWorld::updateControllers ( float  t  ) 

called by physics internal step callback

void PhysicsWorld::updateGravity (  )  [protected]
void PhysicsWorld::updateSolverInfo (  )  [protected]

Friends And Related Function Documentation

friend class PhysicsBody [friend]

Definition at line 16 of file PhysicsWorld.h.

friend class PhysicsState [friend]

Definition at line 17 of file PhysicsWorld.h.


Member Data Documentation

Definition at line 83 of file PhysicsWorld.h.

Referenced by begin(), and end().

class btBroadphaseInterface* PhysicsWorld::broadphase [protected]

Definition at line 73 of file PhysicsWorld.h.

class btDefaultCollisionConfiguration* PhysicsWorld::collisionConfiguration [protected]

Definition at line 71 of file PhysicsWorld.h.

class btCollisionDispatcher* PhysicsWorld::dispatcher [protected]

Definition at line 72 of file PhysicsWorld.h.

class btDiscreteDynamicsWorld* PhysicsWorld::dynamicsWorld [protected]

Definition at line 75 of file PhysicsWorld.h.

Referenced by getWorld().

Definition at line 47 of file PhysicsWorld.h.

Referenced by PhysicsWorld().

class CollisionFilter* PhysicsWorld::filter [protected]

Definition at line 77 of file PhysicsWorld.h.

Definition at line 43 of file PhysicsWorld.h.

Referenced by PhysicsWorld().

Definition at line 45 of file PhysicsWorld.h.

Referenced by PhysicsWorld().

Definition at line 84 of file PhysicsWorld.h.

class btSequentialImpulseConstraintSolver* PhysicsWorld::solver [protected]

Definition at line 74 of file PhysicsWorld.h.

Definition at line 46 of file PhysicsWorld.h.

Referenced by PhysicsWorld().

Definition at line 44 of file PhysicsWorld.h.

Referenced by PhysicsWorld().

Definition at line 48 of file PhysicsWorld.h.

Referenced by PhysicsWorld().


The documentation for this class was generated from the following file:

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:14 2016 by Doxygen 1.6.3