Bullet Collision Detection & Physics Library
btInternalEdgeUtility.h
Go to the documentation of this file.
1
2#ifndef BT_INTERNAL_EDGE_UTILITY_H
3#define BT_INTERNAL_EDGE_UTILITY_H
4
7
9
12
16class btManifoldPoint;
17class btIDebugDraw;
18
19
20
22{
24 BT_TRIANGLE_CONCAVE_DOUBLE_SIDED = 2, //double sided options are experimental, single sided is recommended
26};
27
28
30void btGenerateInternalEdgeInfo (btBvhTriangleMeshShape*trimeshShape, btTriangleInfoMap* triangleInfoMap);
31
32
35void btAdjustInternalEdgeContacts(btManifoldPoint& cp, const btCollisionObjectWrapper* trimeshColObj0Wrap,const btCollisionObjectWrapper* otherColObj1Wrap, int partId0, int index0, int normalAdjustFlags = 0);
36
39//#define BT_INTERNAL_EDGE_DEBUG_DRAW
40
41#ifdef BT_INTERNAL_EDGE_DEBUG_DRAW
42void btSetDebugDrawer(btIDebugDraw* debugDrawer);
43#endif //BT_INTERNAL_EDGE_DEBUG_DRAW
44
45
46#endif //BT_INTERNAL_EDGE_UTILITY_H
47
btInternalEdgeAdjustFlags
@ BT_TRIANGLE_CONVEX_DOUBLE_SIDED
@ BT_TRIANGLE_CONVEX_BACKFACE_MODE
@ BT_TRIANGLE_CONCAVE_DOUBLE_SIDED
void btGenerateInternalEdgeInfo(btBvhTriangleMeshShape *trimeshShape, btTriangleInfoMap *triangleInfoMap)
Call btGenerateInternalEdgeInfo to create triangle info, store in the shape 'userInfo'.
void btAdjustInternalEdgeContacts(btManifoldPoint &cp, const btCollisionObjectWrapper *trimeshColObj0Wrap, const btCollisionObjectWrapper *otherColObj1Wrap, int partId0, int index0, int normalAdjustFlags=0)
Call the btFixMeshNormal to adjust the collision normal, using the triangle info map (generated using...
The btBvhTriangleMeshShape is a static-triangle mesh shape, it can only be used for fixed/non-moving ...
btCollisionObject can be used to manage collision detection objects.
The btIDebugDraw interface class allows hooking up a debug renderer to visually debug simulations.
Definition: btIDebugDraw.h:30
ManifoldContactPoint collects and maintains persistent contactpoints.
The btTriangleInfoMap stores edge angle information for some triangles. You can compute this informat...