add setUnscaledRadius for btSphereShape
authorErwin Coumans <blender@erwincoumans.com>
Tue, 30 Sep 2008 22:05:12 +0000 (22:05 +0000)
committerErwin Coumans <blender@erwincoumans.com>
Tue, 30 Sep 2008 22:05:12 +0000 (22:05 +0000)
extern/bullet2/src/BulletCollision/CollisionShapes/btSphereShape.h

index 83421d69e0d1d19e5b9e1e582d8f0ee674353f60..a6d01cdca9d106a01575142d3d268655d6f993b4 100644 (file)
@@ -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";}