00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00029
00030 #ifndef _ENTITY_COMMONS_H
00031 #define _ENTITY_COMMONS_H
00032
00033 #include <PVLE/Export.h>
00034
00035 #include <osg/Vec3>
00036 #include <osg/Quat>
00037
00038 namespace Physics {
00039 class World;
00040 }
00041
00042 class C3DPhy;
00043
00045 PVLE_EXPORT C3DPhy * createFixedBox3DPhy(const osg::Vec3 & size, const osg::Vec3 & pos = osg::Vec3(), const osg::Quat & orientation = osg::Quat());
00047 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());
00049 PVLE_EXPORT C3DPhy * createFixedSphere3DPhy(const float radius, const osg::Vec3 & pos = osg::Vec3(), const osg::Quat & orientation = osg::Quat());
00051 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());
00053 PVLE_EXPORT C3DPhy * createFixedCapsule3DPhy(const float radius, const float length, const osg::Vec3 & pos = osg::Vec3(), const osg::Quat & orientation = osg::Quat());
00055 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());
00057 PVLE_EXPORT C3DPhy * createFixedCylinder3DPhy(const float radius, const float length, const osg::Vec3 & pos = osg::Vec3(), const osg::Quat & orientation = osg::Quat());
00059 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());
00060
00061 #endif // _ENTITY_COMMONS_H