From 06264e69bfb9b39350cd8e34ad569f801eddaadc Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Wed, 20 Jul 2011 11:40:42 +0000 Subject: [PATCH] - fix to HingeJoint (native bullet), thanks to @makeshift git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7885 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../src/bullet/native/com_jme3_bullet_joints_HingeJoint.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/bullet/native/com_jme3_bullet_joints_HingeJoint.cpp b/engine/src/bullet/native/com_jme3_bullet_joints_HingeJoint.cpp index 35703ba8d..984aeefb3 100644 --- a/engine/src/bullet/native/com_jme3_bullet_joints_HingeJoint.cpp +++ b/engine/src/bullet/native/com_jme3_bullet_joints_HingeJoint.cpp @@ -215,8 +215,8 @@ extern "C" { btVector3 vec3 = btVector3(); btVector3 vec4 = btVector3(); jmeBulletUtil::convert(env, pivotA, &vec1); - jmeBulletUtil::convert(env, axisA, &vec2); - jmeBulletUtil::convert(env, pivotB, &vec3); + jmeBulletUtil::convert(env, pivotB, &vec2); + jmeBulletUtil::convert(env, axisA, &vec3); jmeBulletUtil::convert(env, axisB, &vec4); btHingeConstraint* joint = new btHingeConstraint(*bodyA, *bodyB, vec1, vec2, vec3, vec4); return (long) joint;