Bullet Collision Detection & Physics Library
|
#include "btInternalEdgeUtility.h"
#include "BulletCollision/CollisionShapes/btBvhTriangleMeshShape.h"
#include "BulletCollision/CollisionShapes/btHeightfieldTerrainShape.h"
#include "BulletCollision/CollisionShapes/btScaledBvhTriangleMeshShape.h"
#include "BulletCollision/CollisionShapes/btTriangleShape.h"
#include "BulletCollision/CollisionDispatch/btCollisionObject.h"
#include "BulletCollision/NarrowPhaseCollision/btManifoldPoint.h"
#include "LinearMath/btIDebugDraw.h"
#include "BulletCollision/CollisionDispatch/btCollisionObjectWrapper.h"
Go to the source code of this file.
Classes | |
struct | btConnectivityProcessor |
struct | b3ProcessAllTrianglesHeightfield |
Functions | |
static int | btGetHash (int partId, int triangleIndex) |
static btScalar | btGetAngle (const btVector3 &edgeA, const btVector3 &normalA, const btVector3 &normalB) |
void | btGenerateInternalEdgeInfo (btBvhTriangleMeshShape *trimeshShape, btTriangleInfoMap *triangleInfoMap) |
Call btGenerateInternalEdgeInfo to create triangle info, store in the shape 'userInfo'. More... | |
void | btGenerateInternalEdgeInfo (btHeightfieldTerrainShape *heightfieldShape, btTriangleInfoMap *triangleInfoMap) |
void | btNearestPointInLineSegment (const btVector3 &point, const btVector3 &line0, const btVector3 &line1, btVector3 &nearestPoint) |
bool | btClampNormal (const btVector3 &edge, const btVector3 &tri_normal_org, const btVector3 &localContactNormalOnB, btScalar correctedEdgeAngle, btVector3 &clampedLocalNormal) |
void | btAdjustInternalEdgeContacts (btManifoldPoint &cp, const btCollisionObjectWrapper *colObj0Wrap, const btCollisionObjectWrapper *colObj1Wrap, int partId0, int index0, int normalAdjustFlags) |
Changes a btManifoldPoint collision normal to the normal from the mesh. More... | |
void btAdjustInternalEdgeContacts | ( | btManifoldPoint & | cp, |
const btCollisionObjectWrapper * | colObj0Wrap, | ||
const btCollisionObjectWrapper * | colObj1Wrap, | ||
int | partId0, | ||
int | index0, | ||
int | normalAdjustFlags | ||
) |
Changes a btManifoldPoint collision normal to the normal from the mesh.
Call the btFixMeshNormal to adjust the collision normal, using the triangle info map (generated using btGenerateInternalEdgeInfo) If this info map is missing, or the triangle is not store in this map, nothing will be done.
Definition at line 486 of file btInternalEdgeUtility.cpp.
bool btClampNormal | ( | const btVector3 & | edge, |
const btVector3 & | tri_normal_org, | ||
const btVector3 & | localContactNormalOnB, | ||
btScalar | correctedEdgeAngle, | ||
btVector3 & | clampedLocalNormal | ||
) |
Definition at line 452 of file btInternalEdgeUtility.cpp.
void btGenerateInternalEdgeInfo | ( | btBvhTriangleMeshShape * | trimeshShape, |
btTriangleInfoMap * | triangleInfoMap | ||
) |
Call btGenerateInternalEdgeInfo to create triangle info, store in the shape 'userInfo'.
Definition at line 331 of file btInternalEdgeUtility.cpp.
void btGenerateInternalEdgeInfo | ( | btHeightfieldTerrainShape * | heightfieldShape, |
btTriangleInfoMap * | triangleInfoMap | ||
) |
Definition at line 406 of file btInternalEdgeUtility.cpp.
|
static |
Definition at line 40 of file btInternalEdgeUtility.cpp.
|
static |
Definition at line 34 of file btInternalEdgeUtility.cpp.