From 92729bc77641d9c0d6fa0dc3ab7bfa22d7c7285c Mon Sep 17 00:00:00 2001 From: Sergej Reich Date: Fri, 25 Oct 2013 03:45:00 +0000 Subject: rigidbody: Use bullet's own fixed constraint Should be no functional changes. --- intern/rigidbody/rb_bullet_api.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/intern/rigidbody/rb_bullet_api.cpp b/intern/rigidbody/rb_bullet_api.cpp index 5724d1992d9..ecb07c628d2 100644 --- a/intern/rigidbody/rb_bullet_api.cpp +++ b/intern/rigidbody/rb_bullet_api.cpp @@ -826,11 +826,7 @@ rbConstraint *RB_constraint_new_fixed(float pivot[3], float orn[4], rbRigidBody make_constraint_transforms(transform1, transform2, body1, body2, pivot, orn); - btGeneric6DofConstraint *con = new btGeneric6DofConstraint(*body1, *body2, transform1, transform2, true); - - /* lock all axes */ - for (int i = 0; i < 6; i++) - con->setLimit(i, 0, 0); + btFixedConstraint *con = new btFixedConstraint(*body1, *body2, transform1, transform2); return (rbConstraint *)con; } -- cgit v1.2.3