fix, no argument to setZero
This commit is contained in:
@@ -285,7 +285,7 @@ btTypedConstraint* btBulletWorldImporter::createUniversalD6Constraint(class bt
|
|||||||
btRigidBody* btBulletWorldImporter::createRigidBody(bool isDynamic, btScalar mass, const btTransform& startTransform,btCollisionShape* shape)
|
btRigidBody* btBulletWorldImporter::createRigidBody(bool isDynamic, btScalar mass, const btTransform& startTransform,btCollisionShape* shape)
|
||||||
{
|
{
|
||||||
btVector3 localInertia;
|
btVector3 localInertia;
|
||||||
localInertia.setZero(0);
|
localInertia.setZero();
|
||||||
|
|
||||||
if (mass)
|
if (mass)
|
||||||
shape->calculateLocalInertia(mass,localInertia);
|
shape->calculateLocalInertia(mass,localInertia);
|
||||||
|
|||||||
Reference in New Issue
Block a user