Changeset 2908 for code/branches/questsystem5/src/bullet/BulletCollision/CollisionShapes/btConvexShape.cpp
- Timestamp:
- Apr 8, 2009, 12:58:47 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
r2907 r2908 155 155 156 156 btCapsuleShape* capsuleShape = (btCapsuleShape*)this; 157 btVector3 halfExtents = capsuleShape->getImplicitShapeDimensions(); 157 158 btScalar halfHeight = capsuleShape->getHalfHeight(); 158 159 int capsuleUpAxis = capsuleShape->getUpAxis(); … … 301 302 { 302 303 btSphereShape* sphereShape = (btSphereShape*)this; 303 btScalarradius = sphereShape->getImplicitShapeDimensions().getX();// * convexShape->getLocalScaling().getX();304 btScalarmargin = radius + sphereShape->getMarginNonVirtual();304 float radius = sphereShape->getImplicitShapeDimensions().getX();// * convexShape->getLocalScaling().getX(); 305 float margin = radius + sphereShape->getMarginNonVirtual(); 305 306 const btVector3& center = t.getOrigin(); 306 307 btVector3 extent(margin,margin,margin); … … 314 315 { 315 316 btBoxShape* convexShape = (btBoxShape*)this; 316 btScalarmargin=convexShape->getMarginNonVirtual();317 float margin=convexShape->getMarginNonVirtual(); 317 318 btVector3 halfExtents = convexShape->getImplicitShapeDimensions(); 318 319 halfExtents += btVector3(margin,margin,margin);
Note: See TracChangeset
for help on using the changeset viewer.