diff options
author | Erwin Coumans <blender@erwincoumans.com> | 2008-10-01 02:05:12 +0400 |
---|---|---|
committer | Erwin Coumans <blender@erwincoumans.com> | 2008-10-01 02:05:12 +0400 |
commit | 09f79a8e9f26d931667884f1147484e5d93ad63b (patch) | |
tree | 5ba45eb7ab5e5256194d2ea0ae69afacf26e16b5 /extern | |
parent | 66d51d461e9e4f7e069a6e7bb3feef19cabead94 (diff) |
add setUnscaledRadius for btSphereShape
Diffstat (limited to 'extern')
-rw-r--r-- | extern/bullet2/src/BulletCollision/CollisionShapes/btSphereShape.h | 6 |
1 files changed, 6 insertions, 0 deletions
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";} |