create one of these to support physics simulations etc. More...
#include <aesop-physics.h>
Classes | |
struct | collision_iterator_t |
struct | collision_record_t |
struct | object_iterator_t |
Public Member Functions | |
virtual | ~PhysicsWorld (void) throw () |
virtual void | addObject (IN smart_ptr< PhysicsObject > &o)=0 |
virtual void | removeObject (IN PhysicsObject *obj)=0 |
virtual long | getObjectCount (void)=0 throw () |
virtual void | tick (IN float seconds)=0 |
virtual void | getObjectIterator (OUT object_iterator_t &i)=0 |
virtual bool | getNextObject (IO object_iterator_t &i, OUT smart_ptr< PhysicsObject > &obj)=0 |
virtual void | getCollisionIterator (OUT collision_iterator_t &i)=0 |
virtual bool | getNextCollision (IO collision_iterator_t &i, OUT collision_record_t &cr)=0 |
virtual smart_ptr< PhysicsObject > | rayTest (IN const point3d_t &from, IN const point3d_t &to)=0 |
Static Public Member Functions | |
static smart_ptr< PhysicsWorld > | create (IN const Datahash *params) |
create one of these to support physics simulations etc.
This is a threadsafe object with two supported iterators: one for objects in the world, and one for collisions.
Definition at line 237 of file aesop-physics.h.