physics-loader Library: Reference Physics Loader
[AESOP Physics]


This is a reference implementation of a physics loader, although this is probably going to be commonly used since I suspect most people will continue to use Bullet rather than other physics engines. More...

Collaboration diagram for physics-loader Library: Reference Physics Loader:



static const char * aesop::s_name = "Physics Meta Loader"
static smart_ptr< PhysicsRegistry > aesop::s_registry
smart_ptr< TypeComponentLoader > aesop::getPhysicsLoader (void)
 get object capable of loading aesop physics objects (type components)
bool aesop::getPhysicsMetaFromInstance (IN smart_ptr< Instance > &instance, OUT physics_meta_t &meta)
 given an instance, return a physics_meta_t object
static int aesop::checkFlag (IN const char *modelFlags, IN const char *name, IN int value)
static void aesop::updateFlagsFromData (IO int &flags, IN const Datahash *data)
static smart_ptr< PhysicsMeta > aesop::loadShape (IN const Datahash *physicsData, IN const Datahash *typeData, IN const Datahash *instData, IN const char *parentDir)

Detailed Description


This is a reference implementation of a physics loader, although this is probably going to be commonly used since I suspect most people will continue to use Bullet rather than other physics engines.

Create one of these using getPhysicsLoader(), register it with the AESOP Types and Instances library, and then you'll be able to load and use physics models in physics simulations.


Function Documentation

smart_ptr< TypeComponentLoader > aesop::getPhysicsLoader ( void   ) 

get object capable of loading aesop physics objects (type components)

bool aesop::getPhysicsMetaFromInstance ( IN smart_ptr< Instance > &  instance,
OUT physics_meta_t &  meta 
)

given an instance, return a physics_meta_t object

static int aesop::checkFlag ( IN const char *  modelFlags,
IN const char *  name,
IN int  value 
) [static]

Definition at line 94 of file physics-loader.cpp.

static void aesop::updateFlagsFromData ( IO int &  flags,
IN const Datahash *  data 
) [static]

Definition at line 118 of file physics-loader.cpp.

static smart_ptr<PhysicsMeta> aesop::loadShape ( IN const Datahash *  physicsData,
IN const Datahash *  typeData,
IN const Datahash *  instData,
IN const char *  parentDir 
) [static]

Definition at line 137 of file physics-loader.cpp.


Variable Documentation

const char* aesop::s_name = "Physics Meta Loader" [static]

Definition at line 42 of file physics-loader.cpp.

static smart_ptr< Registry > aesop::s_registry [static]

Definition at line 302 of file physics-loader.cpp.