Revision: 16852
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16852
Author:   erwin
Date:     2008-10-01 00:05:12 +0200 (Wed, 01 Oct 2008)

Log Message:
-----------
add setUnscaledRadius for btSphereShape

Modified Paths:
--------------
    
trunk/blender/extern/bullet2/src/BulletCollision/CollisionShapes/btSphereShape.h

Modified: 
trunk/blender/extern/bullet2/src/BulletCollision/CollisionShapes/btSphereShape.h
===================================================================
--- 
trunk/blender/extern/bullet2/src/BulletCollision/CollisionShapes/btSphereShape.h
    2008-09-30 17:06:41 UTC (rev 16851)
+++ 
trunk/blender/extern/bullet2/src/BulletCollision/CollisionShapes/btSphereShape.h
    2008-09-30 22:05:12 UTC (rev 16852)
@@ -44,6 +44,12 @@
 
        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";}
 


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to