Commons.h File Reference

Common entities that are often used. More...

#include <PVLE/Export.h>
#include <osg/Vec3>
#include <osg/Quat>

Include dependency graph for Entity/Commons.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Namespaces

namespace  Physics
 Physics computations and wraping functionalities.

Functions

PVLE_EXPORT C3DPhycreateFixedBox3DPhy (const osg::Vec3 &size, const osg::Vec3 &pos=osg::Vec3(), const osg::Quat &orientation=osg::Quat())
 Creates a simple 3DPhy box, without a body.
PVLE_EXPORT C3DPhycreateBox3DPhy (Physics::World *pPhyWorld, const osg::Vec3 &size, const float mass, const osg::Vec3 &pos=osg::Vec3(), const osg::Quat &orientation=osg::Quat())
 Creates a simple 3DPhy box, with a body.
PVLE_EXPORT C3DPhycreateFixedSphere3DPhy (const float radius, const osg::Vec3 &pos=osg::Vec3(), const osg::Quat &orientation=osg::Quat())
 Creates a simple 3DPhy sphere, without a body.
PVLE_EXPORT C3DPhycreateSphere3DPhy (Physics::World *pPhyWorld, const float radius, const float mass, const osg::Vec3 &pos=osg::Vec3(), const osg::Quat &orientation=osg::Quat())
 Creates a simple 3DPhy sphere, with a body.
PVLE_EXPORT C3DPhycreateFixedCapsule3DPhy (const float radius, const float length, const osg::Vec3 &pos=osg::Vec3(), const osg::Quat &orientation=osg::Quat())
 Creates a simple 3DPhy capsule, without a body.
PVLE_EXPORT C3DPhycreateCapsule3DPhy (Physics::World *pPhyWorld, const float radius, const float length, const float mass, const osg::Vec3 &pos=osg::Vec3(), const osg::Quat &orientation=osg::Quat())
 Creates a simple 3DPhy capsule, with a body.
PVLE_EXPORT C3DPhycreateFixedCylinder3DPhy (const float radius, const float length, const osg::Vec3 &pos=osg::Vec3(), const osg::Quat &orientation=osg::Quat())
 Creates a simple 3DPhy cylinder, without a body.
PVLE_EXPORT C3DPhycreateCylinder3DPhy (Physics::World *pPhyWorld, const float radius, const float length, const float mass, const osg::Vec3 &pos=osg::Vec3(), const osg::Quat &orientation=osg::Quat())
 Creates a simple 3DPhy cylinder, with a body.


Detailed Description

Common entities that are often used.

Definition in file Entity/Commons.h.


Function Documentation

PVLE_EXPORT C3DPhy* createBox3DPhy ( Physics::World pPhyWorld,
const osg::Vec3 &  size,
const float  mass,
const osg::Vec3 &  pos = osg::Vec3(),
const osg::Quat &  orientation = osg::Quat() 
)

Creates a simple 3DPhy box, with a body.

Definition at line 41 of file Entity/Commons.cpp.

References Physics::createCanonicalBox(), createShapeGeodeBox(), dGeomSetPosition(), dGeomSetQuaternion(), and C3DPhy::INIT_AUTO_BIND.

PVLE_EXPORT C3DPhy* createCapsule3DPhy ( Physics::World pPhyWorld,
const float  radius,
const float  length,
const float  mass,
const osg::Vec3 &  pos = osg::Vec3(),
const osg::Quat &  orientation = osg::Quat() 
)

Creates a simple 3DPhy capsule, with a body.

Definition at line 71 of file Entity/Commons.cpp.

References Physics::createCanonicalCapsule(), createShapeGeodeCapsule(), dGeomSetPosition(), dGeomSetQuaternion(), and C3DPhy::INIT_AUTO_BIND.

PVLE_EXPORT C3DPhy* createCylinder3DPhy ( Physics::World pPhyWorld,
const float  radius,
const float  length,
const float  mass,
const osg::Vec3 &  pos = osg::Vec3(),
const osg::Quat &  orientation = osg::Quat() 
)

Creates a simple 3DPhy cylinder, with a body.

Definition at line 86 of file Entity/Commons.cpp.

References Physics::createCanonicalCylinder(), createShapeGeodeCylinder(), dGeomSetPosition(), dGeomSetQuaternion(), and C3DPhy::INIT_AUTO_BIND.

PVLE_EXPORT C3DPhy* createFixedBox3DPhy ( const osg::Vec3 &  size,
const osg::Vec3 &  pos = osg::Vec3(),
const osg::Quat &  orientation = osg::Quat() 
)

Creates a simple 3DPhy box, without a body.

Definition at line 34 of file Entity/Commons.cpp.

References Physics::createCanonicalBoxGeom(), createShapeGeodeBox(), dGeomSetPosition(), dGeomSetQuaternion(), and C3DPhy::INIT_BIND_ONCE.

PVLE_EXPORT C3DPhy* createFixedCapsule3DPhy ( const float  radius,
const float  length,
const osg::Vec3 &  pos = osg::Vec3(),
const osg::Quat &  orientation = osg::Quat() 
)

Creates a simple 3DPhy capsule, without a body.

Definition at line 64 of file Entity/Commons.cpp.

References Physics::createCanonicalCapsuleGeom(), createShapeGeodeCapsule(), dGeomSetPosition(), dGeomSetQuaternion(), and C3DPhy::INIT_BIND_ONCE.

PVLE_EXPORT C3DPhy* createFixedCylinder3DPhy ( const float  radius,
const float  length,
const osg::Vec3 &  pos = osg::Vec3(),
const osg::Quat &  orientation = osg::Quat() 
)

Creates a simple 3DPhy cylinder, without a body.

Definition at line 79 of file Entity/Commons.cpp.

References Physics::createCanonicalCylinderGeom(), createShapeGeodeCylinder(), dGeomSetPosition(), dGeomSetQuaternion(), and C3DPhy::INIT_BIND_ONCE.

PVLE_EXPORT C3DPhy* createFixedSphere3DPhy ( const float  radius,
const osg::Vec3 &  pos = osg::Vec3(),
const osg::Quat &  orientation = osg::Quat() 
)

Creates a simple 3DPhy sphere, without a body.

Definition at line 49 of file Entity/Commons.cpp.

References Physics::createCanonicalSphereGeom(), createShapeGeodeSphere(), dGeomSetPosition(), dGeomSetQuaternion(), and C3DPhy::INIT_BIND_ONCE.

PVLE_EXPORT C3DPhy* createSphere3DPhy ( Physics::World pPhyWorld,
const float  radius,
const float  mass,
const osg::Vec3 &  pos = osg::Vec3(),
const osg::Quat &  orientation = osg::Quat() 
)

Creates a simple 3DPhy sphere, with a body.

Definition at line 56 of file Entity/Commons.cpp.

References Physics::createCanonicalSphere(), createShapeGeodeSphere(), dGeomSetPosition(), dGeomSetQuaternion(), and C3DPhy::INIT_AUTO_BIND.


Generated on Sun Jan 17 11:38:57 2010 for PVLE (Pro-Vocation Light Engine) by  doxygen 1.5.9