Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 20, 2008, 5:40:38 PM (16 years ago)
Author:
rgrieder
Message:

Downgraded Bullet to latest tagged version: 2.72
That should give us more stability.

Location:
code/branches/physics/src/bullet/BulletCollision/CollisionShapes
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • code/branches/physics/src/bullet/BulletCollision/CollisionShapes/btConvexPointCloudShape.cpp

    r1963 r1972  
    1818#include "LinearMath/btQuaternion.h"
    1919
     20btConvexPointCloudShape::btConvexPointCloudShape (btVector3* points,int numPoints) : btPolyhedralConvexShape ()
     21{
     22        m_shapeType = CONVEX_POINT_CLOUD_SHAPE_PROXYTYPE;
     23        m_points = points;
     24        m_numPoints = numPoints;
     25
     26        recalcLocalAabb();
     27}
     28
     29void btConvexPointCloudShape::setPoints (btVector3* points, int numPoints)
     30{
     31        m_points = points;
     32        m_numPoints = numPoints;
     33
     34        recalcLocalAabb();
     35}
     36
     37
    2038void btConvexPointCloudShape::setLocalScaling(const btVector3& scaling)
    2139{
     
    2442}
    2543
    26 #ifndef __SPU__
    2744btVector3       btConvexPointCloudShape::localGetSupportingVertexWithoutMargin(const btVector3& vec0)const
    2845{
     
    108125
    109126
    110 #endif
     127
    111128
    112129
  • code/branches/physics/src/bullet/BulletCollision/CollisionShapes/btConvexPointCloudShape.h

    r1963 r1972  
    2929        BT_DECLARE_ALIGNED_ALLOCATOR();
    3030
    31         btConvexPointCloudShape(btVector3* points,int numPoints, bool computeAabb = true)
    32         {
    33                 m_shapeType = CONVEX_POINT_CLOUD_SHAPE_PROXYTYPE;
    34                 m_points = points;
    35                 m_numPoints = numPoints;
     31        btConvexPointCloudShape(btVector3* points,int numPoints);
    3632
    37                 if (computeAabb)
    38                         recalcLocalAabb();
    39         }
    40 
    41         void setPoints (btVector3* points, int numPoints, bool computeAabb = true)
    42         {
    43                 m_points = points;
    44                 m_numPoints = numPoints;
    45 
    46                 if (computeAabb)
    47                         recalcLocalAabb();
    48         }
     33        void setPoints (btVector3* points, int numPoints);
    4934
    5035        btPoint3* getPoints()
     
    6348        }
    6449
    65 #ifndef __SPU__
    6650        virtual btVector3       localGetSupportingVertex(const btVector3& vec)const;
    6751        virtual btVector3       localGetSupportingVertexWithoutMargin(const btVector3& vec)const;
    6852        virtual void    batchedUnitVectorGetSupportingVertexWithoutMargin(const btVector3* vectors,btVector3* supportVerticesOut,int numVectors) const;
    69 #endif
    7053
    7154
  • code/branches/physics/src/bullet/BulletCollision/CollisionShapes/btPolyhedralConvexShape.cpp

    r1963 r1972  
    1616#include "BulletCollision/CollisionShapes/btPolyhedralConvexShape.h"
    1717
    18 btPolyhedralConvexShape::btPolyhedralConvexShape() :btConvexInternalShape(),
     18btPolyhedralConvexShape::btPolyhedralConvexShape()
     19:btConvexInternalShape(),
    1920m_localAabbMin(1,1,1),
    2021m_localAabbMax(-1,-1,-1),
     
    2425
    2526}
     27
    2628
    2729
  • code/branches/physics/src/bullet/BulletCollision/CollisionShapes/btPolyhedralConvexShape.h

    r1963 r1972  
    3232        bool            m_isLocalAabbValid;
    3333
     34        btPolyhedralConvexShape();
    3435public:
    3536
    36         btPolyhedralConvexShape();
     37       
    3738
    3839        //brute force implementations
    39 
    4040        virtual btVector3       localGetSupportingVertexWithoutMargin(const btVector3& vec)const;
    4141        virtual void    batchedUnitVectorGetSupportingVertexWithoutMargin(const btVector3* vectors,btVector3* supportVerticesOut,int numVectors) const;
    42 
    4342       
    4443        virtual void    calculateLocalInertia(btScalar mass,btVector3& inertia) const;
    4544
    46 
    47         void setCachedLocalAabb (const btVector3& aabbMin, const btVector3& aabbMax)
    48         {
    49                 m_isLocalAabbValid = true;
    50                 m_localAabbMin = aabbMin;
    51                 m_localAabbMax = aabbMax;
    52         }
    53 
    54         inline void getCachedLocalAabb (btVector3& aabbMin, btVector3& aabbMax) const
    55         {
    56                 btAssert(m_isLocalAabbValid);
    57                 aabbMin = m_localAabbMin;
    58                 aabbMax = m_localAabbMax;
    59         }
    6045
    6146        inline void getNonvirtualAabb(const btTransform& trans,btVector3& aabbMin,btVector3& aabbMax, btScalar margin) const
  • code/branches/physics/src/bullet/BulletCollision/CollisionShapes/btSphereShape.cpp

    r1963 r1972  
    1818
    1919#include "LinearMath/btQuaternion.h"
     20
     21
     22btSphereShape ::btSphereShape (btScalar radius) : btConvexInternalShape ()
     23{
     24        m_shapeType = SPHERE_SHAPE_PROXYTYPE;
     25        m_implicitShapeDimensions.setX(radius);
     26        m_collisionMargin = radius;
     27}
    2028
    2129btVector3       btSphereShape::localGetSupportingVertexWithoutMargin(const btVector3& vec)const
  • code/branches/physics/src/bullet/BulletCollision/CollisionShapes/btSphereShape.h

    r1963 r1972  
    2828        BT_DECLARE_ALIGNED_ALLOCATOR();
    2929
    30         btSphereShape (btScalar radius) : btConvexInternalShape ()
    31         {
    32                 m_shapeType = SPHERE_SHAPE_PROXYTYPE;
    33                 m_implicitShapeDimensions.setX(radius);
    34                 m_collisionMargin = radius;
    35         }
     30        btSphereShape (btScalar radius);
     31       
    3632       
    3733        virtual btVector3       localGetSupportingVertex(const btVector3& vec)const;
Note: See TracChangeset for help on using the changeset viewer.