Changeset View
Changeset View
Standalone View
Standalone View
extern/bullet2/src/BulletCollision/CollisionShapes/btEmptyShape.cpp
| Show All 9 Lines | |||||
| 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. | 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. | ||||
| 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. | 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. | ||||
| 3. This notice may not be removed or altered from any source distribution. | 3. This notice may not be removed or altered from any source distribution. | ||||
| */ | */ | ||||
| #include "btEmptyShape.h" | #include "btEmptyShape.h" | ||||
| #include "btCollisionShape.h" | #include "btCollisionShape.h" | ||||
| btEmptyShape::btEmptyShape() : btConcaveShape () | btEmptyShape::btEmptyShape() : btConcaveShape() | ||||
| { | { | ||||
| m_shapeType = EMPTY_SHAPE_PROXYTYPE; | m_shapeType = EMPTY_SHAPE_PROXYTYPE; | ||||
| } | } | ||||
| btEmptyShape::~btEmptyShape() | btEmptyShape::~btEmptyShape() | ||||
| { | { | ||||
| } | } | ||||
| ///getAabb's default implementation is brute force, expected derived classes to implement a fast dedicated version | ///getAabb's default implementation is brute force, expected derived classes to implement a fast dedicated version | ||||
| void btEmptyShape::getAabb(const btTransform& t,btVector3& aabbMin,btVector3& aabbMax) const | void btEmptyShape::getAabb(const btTransform& t, btVector3& aabbMin, btVector3& aabbMax) const | ||||
| { | { | ||||
| btVector3 margin(getMargin(),getMargin(),getMargin()); | btVector3 margin(getMargin(), getMargin(), getMargin()); | ||||
| aabbMin = t.getOrigin() - margin; | aabbMin = t.getOrigin() - margin; | ||||
| aabbMax = t.getOrigin() + margin; | aabbMax = t.getOrigin() + margin; | ||||
| } | } | ||||
| void btEmptyShape::calculateLocalInertia(btScalar ,btVector3& ) const | void btEmptyShape::calculateLocalInertia(btScalar, btVector3&) const | ||||
| { | { | ||||
| btAssert(0); | btAssert(0); | ||||
| } | } | ||||