Commons.cpp File Reference

#include <PVLE/Entity/Commons.h>
#include <PVLE/Entity/3DPhy.h>
#include <PVLE/3D/Commons.h>
#include <PVLE/3D/Utility3D.h>
#include <PVLE/Physics/Geom.h>
#include <PVLE/Physics/Utility.h>

Include dependency graph for Entity/Commons.cpp:

Go to the source code of this file.

Functions

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


Function Documentation

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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