Differential D1739 Diff 5899 extern/bullet2/src/BulletCollision/CollisionShapes/btStaticPlaneShape.cpp
Changeset View
Changeset View
Standalone View
Standalone View
extern/bullet2/src/BulletCollision/CollisionShapes/btStaticPlaneShape.cpp
| Show All 15 Lines | |||||
| #include "btStaticPlaneShape.h" | #include "btStaticPlaneShape.h" | ||||
| #include "LinearMath/btTransformUtil.h" | #include "LinearMath/btTransformUtil.h" | ||||
| btStaticPlaneShape::btStaticPlaneShape(const btVector3& planeNormal,btScalar planeConstant) | btStaticPlaneShape::btStaticPlaneShape(const btVector3& planeNormal,btScalar planeConstant) | ||||
| : btConcaveShape (), m_planeNormal(planeNormal.normalized()), | : btConcaveShape (), m_planeNormal(planeNormal.normalized()), | ||||
| m_planeConstant(planeConstant), | m_planeConstant(planeConstant), | ||||
| m_localScaling(btScalar(0.),btScalar(0.),btScalar(0.)) | m_localScaling(btScalar(1.),btScalar(1.),btScalar(1.)) | ||||
| { | { | ||||
| m_shapeType = STATIC_PLANE_PROXYTYPE; | m_shapeType = STATIC_PLANE_PROXYTYPE; | ||||
| // btAssert( btFuzzyZero(m_planeNormal.length() - btScalar(1.)) ); | // btAssert( btFuzzyZero(m_planeNormal.length() - btScalar(1.)) ); | ||||
| } | } | ||||
| btStaticPlaneShape::~btStaticPlaneShape() | btStaticPlaneShape::~btStaticPlaneShape() | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines | |||||