[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [16852] trunk/blender/extern/bullet2/src/ BulletCollision/CollisionShapes/btSphereShape.h: add setUnscaledRadius for btSphereShape

Erwin Coumans blender at erwincoumans.com
Wed Oct 1 00:05:13 CEST 2008


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";}
 





More information about the Bf-blender-cvs mailing list