diff options
author | Sergej Reich <sergej.reich@googlemail.com> | 2013-10-25 07:45:00 +0400 |
---|---|---|
committer | Sergej Reich <sergej.reich@googlemail.com> | 2013-10-25 07:45:00 +0400 |
commit | 92729bc77641d9c0d6fa0dc3ab7bfa22d7c7285c (patch) | |
tree | 0d8d0d9baa3ad544eb3aeae0775cc21891bb8935 /intern/rigidbody | |
parent | 472a021aca3c0a6278151f7abee4e0970b026e3f (diff) |
rigidbody: Use bullet's own fixed constraint
Should be no functional changes.
Diffstat (limited to 'intern/rigidbody')
-rw-r--r-- | intern/rigidbody/rb_bullet_api.cpp | 6 |
1 files changed, 1 insertions, 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; } |