#include <PVLE/Export.h>
#include <osg/Vec3>
#include <osg/Quat>
Go to the source code of this file.
Namespaces | |
namespace | Physics |
Physics computations and wraping functionalities. | |
Functions | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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 in file Entity/Commons.h.
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.