From 09f79a8e9f26d931667884f1147484e5d93ad63b Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Tue, 30 Sep 2008 22:05:12 +0000 Subject: add setUnscaledRadius for btSphereShape --- extern/bullet2/src/BulletCollision/CollisionShapes/btSphereShape.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'extern') diff --git a/extern/bullet2/src/BulletCollision/CollisionShapes/btSphereShape.h b/extern/bullet2/src/BulletCollision/CollisionShapes/btSphereShape.h index 83421d69e0d..a6d01cdca9d 100644 --- a/extern/bullet2/src/BulletCollision/CollisionShapes/btSphereShape.h +++ b/extern/bullet2/src/BulletCollision/CollisionShapes/btSphereShape.h @@ -44,6 +44,12 @@ public: btScalar getRadius() const { return m_implicitShapeDimensions.getX() * m_localScaling.getX();} + void setUnscaledRadius(btScalar radius) + { + m_implicitShapeDimensions.setX(radius); + btConvexInternalShape::setMargin(radius); + } + //debugging virtual const char* getName()const {return "SPHERE";} -- cgit v1.2.3