PhysicsManager

Inheritance:

Methods of PhysicsManager:

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);

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);

Filename: physicsManager.I Created by: charles (14Jun00)
PANDA 3D SOFTWARE Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved
All use of this software is subject to the terms of the Panda 3d Software license. You should have received a copy of this license along with this source code; you will also find a current copy of the license at http://etc.cmu.edu/panda3d/docs/license/ .
To contact the maintainers of this program write to panda3d-general@lists.sourceforge.net .
Description : Registers a Physical class with the manager

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

Description : Registers a physicalnode with the manager

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

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.

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