an instance of a shape (has position, velocity, etc) More...
#include <aesop-physics.h>
Public Types | |
enum | eFlags { eFlag_Ghost = 0x0001, eFlag_Moveable = 0x0002, eFlag_Events = 0x0004, eFlag_NoCollisions = 0x0008, eFlag_Remove = 0x0010, eFlag_Static = 0x0020, eFlag_Invalid = 0x8000 } |
Public Member Functions | |
virtual | ~PhysicsObject (void) throw () |
virtual dword_t | getId (void) const =0 throw () |
every physics object has a unique ID | |
virtual int | getFlags (void) const =0 throw () |
object flags | |
virtual void | dump (IN const char *txt) const =0 throw () |
debug information (writes a chunk of information to stderr) | |
virtual point3d_t | getPosition (void) const =0 throw () |
object's current position in world (== map) | |
virtual rect3d_t | getBoundingBox (void) const =0 throw () |
object's axis-aligned bounding box | |
virtual quaternion_t | getOrientation (void) const =0 throw () |
object's current orientation (in Euler angles) | |
virtual point3d_t | getLinearVelocity (void) const =0 throw () |
object's current linear velocity | |
virtual point3d_t | getAngularVelocity (void) const =0 throw () |
object's current angular velocity | |
virtual void | setOrientation (IN const quaternion_t &orient)=0 |
virtual void | setLinearVelocity (IN const point3d_t &linear)=0 |
virtual void | setAngularVelocity (IN const point3d_t &angular)=0 |
virtual void | requestMove (IN const point3d_t &delta, IN float dt)=0 |
can request motion in a particular direction over a time interval | |
virtual void | setPosition (IN const point3d_t &pos)=0 |
jump to a new location, regardless of collisions | |
virtual float | getMass (void) const =0 throw () |
get mass (zero means infinite--immobile) | |
virtual void | iterateOverlappingObjects (IN object_iteration_fn fn, IN void *context)=0 |
iterate over all other overlapping objects | |
virtual void | setUserPointer (void *userPointer)=0 throw () |
set a context pointer | |
virtual void * | getUserPointer (void) const =0 throw () |
retrieve user pointer |
an instance of a shape (has position, velocity, etc)
Definition at line 130 of file aesop-physics.h.
Definition at line 133 of file aesop-physics.h.