Closed GoogleCodeExporter closed 9 years ago
Warning: changing collision shapes for objects in a world is not recommended,
it can
cause invalid contact points etc.
Either make the change while the object is not in the world
(removeCollisionObject/removeRigidBody) or use the following line:
_btBroadphaseInterface->getOverlappingPairCache()->cleanProxyFromPairs(
_btRigidBody-
>getBroadphaseProxy(), _btCollisionDispatcher );
See also this forum topic for the request:
http://bulletphysics.org/Bullet/phpBB3/viewtopic.php?f=9&t=4561
We'll add a 'setImplicitShapeDimentions' to btConvexInternalShape with above
warning
Original comment by erwin.coumans
on 19 Jan 2010 at 6:18
setImplicitShapeDimensions, with warning, is added here:
http://code.google.com/p/bullet/source/detail?r=1881
To change the radius/length of a btCapsuleShape (Y = up/half length)
capsule->setImplicitShapeDimensions(btVector3(radius,0.5*length, radius));
Original comment by erwin.coumans
on 19 Jan 2010 at 6:37
Original issue reported on code.google.com by
erwin.coumans
on 8 Jan 2010 at 4:32