Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErwin Coumans <blender@erwincoumans.com>2008-10-01 02:05:12 +0400
committerErwin Coumans <blender@erwincoumans.com>2008-10-01 02:05:12 +0400
commit09f79a8e9f26d931667884f1147484e5d93ad63b (patch)
tree5ba45eb7ab5e5256194d2ea0ae69afacf26e16b5 /extern/bullet2
parent66d51d461e9e4f7e069a6e7bb3feef19cabead94 (diff)
add setUnscaledRadius for btSphereShape
Diffstat (limited to 'extern/bullet2')
-rw-r--r--extern/bullet2/src/BulletCollision/CollisionShapes/btSphereShape.h6
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";}