Changeset 2907 for code/branches/questsystem5/src/bullet/BulletCollision/CollisionShapes/btConvexShape.cpp
- Timestamp:
- Apr 8, 2009, 12:36:08 AM (16 years ago)
- Location:
- code/branches/questsystem5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem5
- Property svn:mergeinfo changed
-
code/branches/questsystem5/src/bullet/BulletCollision/CollisionShapes/btConvexShape.cpp
r2662 r2907 155 155 156 156 btCapsuleShape* capsuleShape = (btCapsuleShape*)this; 157 btVector3 halfExtents = capsuleShape->getImplicitShapeDimensions();158 157 btScalar halfHeight = capsuleShape->getHalfHeight(); 159 158 int capsuleUpAxis = capsuleShape->getUpAxis(); … … 302 301 { 303 302 btSphereShape* sphereShape = (btSphereShape*)this; 304 floatradius = sphereShape->getImplicitShapeDimensions().getX();// * convexShape->getLocalScaling().getX();305 floatmargin = radius + sphereShape->getMarginNonVirtual();303 btScalar radius = sphereShape->getImplicitShapeDimensions().getX();// * convexShape->getLocalScaling().getX(); 304 btScalar margin = radius + sphereShape->getMarginNonVirtual(); 306 305 const btVector3& center = t.getOrigin(); 307 306 btVector3 extent(margin,margin,margin); … … 315 314 { 316 315 btBoxShape* convexShape = (btBoxShape*)this; 317 floatmargin=convexShape->getMarginNonVirtual();316 btScalar margin=convexShape->getMarginNonVirtual(); 318 317 btVector3 halfExtents = convexShape->getImplicitShapeDimensions(); 319 318 halfExtents += btVector3(margin,margin,margin);
Note: See TracChangeset
for help on using the changeset viewer.