Changeset 2430 for code/branches/physics/src/bullet/BulletCollision/CollisionShapes/btTetrahedronShape.cpp
- Timestamp:
- Dec 13, 2008, 11:45:51 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/physics/src/bullet/BulletCollision/CollisionShapes/btTetrahedronShape.cpp
r2192 r2430 23 23 } 24 24 25 btBU_Simplex1to4::btBU_Simplex1to4(const bt Point3& pt0) : btPolyhedralConvexShape (),26 m_numVertices(0) 27 { 28 m_shapeType = TETRAHEDRAL_SHAPE_PROXYTYPE; 29 addVertex(pt0); 30 } 31 32 btBU_Simplex1to4::btBU_Simplex1to4(const bt Point3& pt0,const btPoint3& pt1) : btPolyhedralConvexShape (),25 btBU_Simplex1to4::btBU_Simplex1to4(const btVector3& pt0) : btPolyhedralConvexShape (), 26 m_numVertices(0) 27 { 28 m_shapeType = TETRAHEDRAL_SHAPE_PROXYTYPE; 29 addVertex(pt0); 30 } 31 32 btBU_Simplex1to4::btBU_Simplex1to4(const btVector3& pt0,const btVector3& pt1) : btPolyhedralConvexShape (), 33 33 m_numVertices(0) 34 34 { … … 38 38 } 39 39 40 btBU_Simplex1to4::btBU_Simplex1to4(const bt Point3& pt0,const btPoint3& pt1,const btPoint3& pt2) : btPolyhedralConvexShape (),40 btBU_Simplex1to4::btBU_Simplex1to4(const btVector3& pt0,const btVector3& pt1,const btVector3& pt2) : btPolyhedralConvexShape (), 41 41 m_numVertices(0) 42 42 { … … 47 47 } 48 48 49 btBU_Simplex1to4::btBU_Simplex1to4(const bt Point3& pt0,const btPoint3& pt1,const btPoint3& pt2,const btPoint3& pt3) : btPolyhedralConvexShape (),49 btBU_Simplex1to4::btBU_Simplex1to4(const btVector3& pt0,const btVector3& pt1,const btVector3& pt2,const btVector3& pt3) : btPolyhedralConvexShape (), 50 50 m_numVertices(0) 51 51 { … … 61 61 62 62 63 void btBU_Simplex1to4::addVertex(const bt Point3& pt)63 void btBU_Simplex1to4::addVertex(const btVector3& pt) 64 64 { 65 65 m_vertices[m_numVertices++] = pt; … … 93 93 } 94 94 95 void btBU_Simplex1to4::getEdge(int i,bt Point3& pa,btPoint3& pb) const95 void btBU_Simplex1to4::getEdge(int i,btVector3& pa,btVector3& pb) const 96 96 { 97 97 … … 157 157 } 158 158 159 void btBU_Simplex1to4::getVertex(int i,bt Point3& vtx) const159 void btBU_Simplex1to4::getVertex(int i,btVector3& vtx) const 160 160 { 161 161 vtx = m_vertices[i]; … … 184 184 185 185 186 void btBU_Simplex1to4::getPlane(btVector3&, bt Point3& ,int ) const186 void btBU_Simplex1to4::getPlane(btVector3&, btVector3& ,int ) const 187 187 { 188 188 … … 194 194 } 195 195 196 bool btBU_Simplex1to4::isInside(const bt Point3& ,btScalar ) const196 bool btBU_Simplex1to4::isInside(const btVector3& ,btScalar ) const 197 197 { 198 198 return false;
Note: See TracChangeset
for help on using the changeset viewer.