SO3Engine
|
OgreNewt_CollisionPrimitives.h
Go to the documentation of this file.
6 OgreNewt basically has no license, you may use any or all of the library however you desire... I hope it can help you in any way.
235 const Ogre::Quaternion& orient = Ogre::Quaternion::IDENTITY, const Ogre::Vector3& pos = Ogre::Vector3::ZERO, Ogre::Real tolerance = 0.001f, const Ogre::Vector3& scale = Ogre::Vector3::UNIT_SCALE);
281 ConcaveHull( const World* world, Ogre::Entity* ent, int id = 1, Ogre::Real tolerance = 0.001f, const Ogre::Vector3& scale = Ogre::Vector3::UNIT_SCALE);
293 ConcaveHull( const World* world, const Ogre::Vector3* verts, int vertcount,int id = 1, Ogre::Real tolerance = 0.001f);
322 TreeCollision( const World* world, Ogre::Entity* ent, bool optimize, int id, FaceWinding fw = FW_DEFAULT, const Ogre::Vector3& scale = Ogre::Vector3::UNIT_SCALE);
323 TreeCollision( const World* world, const Ogre::SceneNode* node, bool optimize, int id, FaceWinding fw = FW_DEFAULT, const Ogre::Vector3& scale = Ogre::Vector3::UNIT_SCALE);
324 void AddEntities(const Ogre::SceneNode* node, const Ogre::SceneNode* mainNode, const Ogre::Vector3 scale, FaceWinding fw = FW_DEFAULT);
337 TreeCollision( const World* world, int numVertices, int numIndices, const float *vertices, const int *indices, bool optimize, int id, FaceWinding fw = FW_DEFAULT);
350 TreeCollision( const World* world, int numVertices, Ogre::Vector3* vertices, Ogre::IndexData* indexData, bool optimize, int id, FaceWinding fw = FW_DEFAULT);
380 static dFloat _CDECL newtonRayCastCallback(const NewtonBody* const body, const NewtonCollision* const treeCollision, dFloat distance, dFloat* normal, int faceId, void* userData);
405 void parseScene( Ogre::SceneNode* startNode, int id, bool optimize = true, FaceWinding fw = FW_DEFAULT );
414 virtual bool entityFilter( const Ogre::SceneNode* currentNode, const Ogre::Entity* currentEntity, FaceWinding& fw ) { return true; }
417 virtual unsigned int getID( const Ogre::SceneNode* currentNode, const Ogre::Entity* currentEntity, unsigned int currentSubMesh ) { return count++; }
421 void _parseNode( Ogre::SceneNode* node, const Ogre::Quaternion& curOrient, const Ogre::Vector3& curPos, const Ogre::Vector3& curScale, FaceWinding fw );
502 HeightField(const World* world, int width, int height, int gridsDiagonals, unsigned short *elevationMap, char *attributeMap, Ogre::Real horizontalScale, Ogre::Real verticleScale, int shapeID);
standard primitive Box.
Definition OgreNewt_CollisionPrimitives.h:45
standard primitive capsule.
Definition OgreNewt_CollisionPrimitives.h:126
filled-donut shape primitive.
Definition OgreNewt_CollisionPrimitives.h:182
create a compound from several collision pieces.
Definition OgreNewt_CollisionPrimitives.h:432
ConvexHull primitive.
Definition OgreNewt_CollisionPrimitives.h:260
standard primitive cone.
Definition OgreNewt_CollisionPrimitives.h:154
ConvexHull primitive.
Definition OgreNewt_CollisionPrimitives.h:213
standard primitive cylinder.
Definition OgreNewt_CollisionPrimitives.h:98
standard primitive Ellipsoid.
Definition OgreNewt_CollisionPrimitives.h:71
null collision (results in no collision)
Definition OgreNewt_CollisionPrimitives.h:33
Pyramid primitive.
Definition OgreNewt_CollisionPrimitives.h:466
TreeCollision - complex polygonal collision.
Definition OgreNewt_CollisionPrimitives.h:305
void setRayCastCallbackactive(bool active=true)
set RayCastCallback active/disabled
Definition OgreNewt_CollisionPrimitives.h:373
TreeCollision created by parsing a tree of SceneNodes, adding collision data of all meshes.
Definition OgreNewt_CollisionPrimitives.h:398
~TreeCollisionSceneParser()
Definition OgreNewt_CollisionPrimitives.h:402
virtual bool entityFilter(const Ogre::SceneNode *currentNode, const Ogre::Entity *currentEntity, FaceWinding &fw)
this is a user-inherited function that lets you filter which Entities will be added to the treeCollis...
Definition OgreNewt_CollisionPrimitives.h:414
virtual unsigned int getID(const Ogre::SceneNode *currentNode, const Ogre::Entity *currentEntity, unsigned int currentSubMesh)
user inherit-able function, allows customization of the ID to be assigned to this group of polygons.
Definition OgreNewt_CollisionPrimitives.h:417
represents a collision shape that is explicitly convex.
Definition OgreNewt_Collision.h:121
Generated by 1.9.8