diff --git a/src/BulletSoftBody/btSoftBody.h b/src/BulletSoftBody/btSoftBody.h index 0c0d6e849..5f0afc439 100644 --- a/src/BulletSoftBody/btSoftBody.h +++ b/src/BulletSoftBody/btSoftBody.h @@ -974,14 +974,16 @@ public: /* Return the volume */ btScalar getVolume() const; /* Cluster count */ - btVector3 getCenterOfMass() const{ - btVector3 com(0,0,0); - for(int i = 0; igetTotalMass(); + return com; + } int clusterCount() const; /* Cluster center of mass */ static btVector3 clusterCom(const Cluster* cluster);