Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 8, 2009, 12:58:47 AM (15 years ago)
Author:
dafrick
Message:

Reverted to revision 2906 (because I'm too stupid to merge correctly, 2nd try will follow shortly. ;))

Location:
code/branches/questsystem5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/questsystem5

  • code/branches/questsystem5/src/bullet/BulletCollision/CollisionShapes/btConvexShape.cpp

    r2907 r2908  
    155155
    156156                btCapsuleShape* capsuleShape = (btCapsuleShape*)this;
     157                btVector3 halfExtents = capsuleShape->getImplicitShapeDimensions();
    157158                btScalar halfHeight = capsuleShape->getHalfHeight();
    158159                int capsuleUpAxis = capsuleShape->getUpAxis();
     
    301302        {
    302303                btSphereShape* sphereShape = (btSphereShape*)this;
    303                 btScalar radius = sphereShape->getImplicitShapeDimensions().getX();// * convexShape->getLocalScaling().getX();
    304                 btScalar margin = radius + sphereShape->getMarginNonVirtual();
     304                float radius = sphereShape->getImplicitShapeDimensions().getX();// * convexShape->getLocalScaling().getX();
     305                float margin = radius + sphereShape->getMarginNonVirtual();
    305306                const btVector3& center = t.getOrigin();
    306307                btVector3 extent(margin,margin,margin);
     
    314315        {
    315316                btBoxShape* convexShape = (btBoxShape*)this;
    316                 btScalar margin=convexShape->getMarginNonVirtual();
     317                float margin=convexShape->getMarginNonVirtual();
    317318                btVector3 halfExtents = convexShape->getImplicitShapeDimensions();
    318319                halfExtents += btVector3(margin,margin,margin);
Note: See TracChangeset for help on using the changeset viewer.