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 (smart_ptr< Instance > &instance,physics_meta_t &meta)
 given an instance, return a physics_meta_t object
static int aesop::checkFlag (const char *modelFlags, const char *name, int value)
static void aesop::updateFlagsFromData (int &flags, const Datahash *data)
static smart_ptr< PhysicsMeta > aesop::loadShape (const Datahash *physicsData, const Datahash *typeData, const Datahash *instData, 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 ( smart_ptr< Instance > &  instance,
physics_meta_t &  meta 
)

given an instance, return a physics_meta_t object

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

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

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

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

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

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


Variable Documentation

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

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

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

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