- fix to HingeJoint (native bullet), thanks to @makeshift

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7885 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 14 years ago
parent 1e2e6f6a2d
commit 06264e69bf
  1. 4
      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;

Loading…
Cancel
Save