PhysicsManager

Inheritance:

Methods of PhysicsManager:

PhysicsManager
PhysicsManager::PhysicsManager(void);

Description : Default Constructor. NOTE: EulerIntegrator is the standard default.

addAngularForce
void PhysicsManager::add_angular_force(AngularForce *f);

Description : Adds a global angular force to the physics manager

addLinearForce
void PhysicsManager::add_linear_force(LinearForce *f);

use attach_physical_node instead.
Description : Adds a global linear force to the physics manager

attachAngularIntegrator
void PhysicsManager::attach_angular_integrator(AngularIntegrator *i);

Description : Hooks an angular integrator into the manager

attachLinearIntegrator
void PhysicsManager::attach_linear_integrator(LinearIntegrator *i);

Description : Hooks a linear integrator into the manager

attachPhysical
void PhysicsManager::attach_physical(Physical *p);

Description : Registers a Physical class with the manager

attachPhysicalnode
void PhysicsManager::attach_physicalnode(PhysicalNode *p);

Description : Please call attach_physical_node instead.

attachPhysicalNode
void PhysicsManager::attach_physical_node(PhysicalNode *p);

use attach_physical_node instead.
Description : Registers a physicalnode with the manager

clearAngularForces
void PhysicsManager::clear_angular_forces(void);

Description : Resets the physics manager force vector

clearLinearForces
void PhysicsManager::clear_linear_forces(void);

Description : Resets the physics manager force vector

clearPhysicals
void PhysicsManager::clear_physicals(void);

Description : Resets the physics manager objects vector

debugOutput
virtual void PhysicsManager::debug_output(ostream &out, unsigned int indent = (0)) const;

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

doPhysics
void PhysicsManager::do_physics(float dt);

Description : This is the main high-level API call. Performs integration on every attached Physical.
Description : This is the main high-level API call. Performs integration on a single physical. Make sure its associated forces are active.

getViscosity
float PhysicsManager::get_viscosity(void) const;

Description : Get the global viscosity.

initRandomSeed
void PhysicsManager::init_random_seed(void);

Description : One-time config function, sets up the random seed used by the physics and particle systems. For synchronizing across distributed computers

output
virtual void PhysicsManager::output(ostream &out) const;

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

removeAngularForce
void PhysicsManager::remove_angular_force(AngularForce *f);

Description : takes an angular force out of the physics list

removeLinearForce
void PhysicsManager::remove_linear_force(LinearForce *f);

Description : takes a linear force out of the physics list

removePhysical
void PhysicsManager::remove_physical(Physical *p);

Description : takes a physical out of the object list

removePhysicalNode
void PhysicsManager::remove_physical_node(PhysicalNode *p);

Description : Removes a physicalnode from the manager

setViscosity
void PhysicsManager::set_viscosity(float viscosity);

Description : Set the global viscosity.

write
virtual void PhysicsManager::write(ostream &out, unsigned int indent = (0)) const;

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

writeAngularForces
virtual void PhysicsManager::write_angular_forces(ostream &out, unsigned int indent = (0)) const;

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

writeLinearForces
virtual void PhysicsManager::write_linear_forces(ostream &out, unsigned int indent = (0)) const;

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

writePhysicals
virtual void PhysicsManager::write_physicals(ostream &out, unsigned int indent = (0)) const;

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