Changes

Jump to: navigation, search

Team Guardian Physics

665 bytes added, 05:00, 6 April 2011
PhysicsScene
iPhysicsScene* CreatePhysicsScene(iContext* c);
</pre>
 
; virtual bool add(iRigidBody* o) : Adds a RigidBody to the internal RigidBody list.
; virtual void setNewGlobalCollisionSpace(iCollisionSpace* cs) : Sets the default CollisionSpace for all CollisionGeometries to the one passed in.
; virtual void update(int now) : Moves the simulation forward. Accepts an integer representing current world time.
; virtual void remove(const iRigidBody* o) : Removes a RigidBody from the internal RigidBody list. The removed RigidBody will nolonger be simulated/updated by the PhysicsScene instance.
; virtual void Delete() const : Deletes this PhysicsScene instance and also deletes all attached RigidBodies.
 
'''Typical Usage'''
The standard controller functions should be called in the usual places in Engine.cpp (Delete(), release(), suspend(), reset(), restore()), please refer to Engine.cpp in the reference implementation for more details.

Navigation menu