diff --git a/engine/src/bullet/native/com_jme3_bullet_joints_ConeJoint.cpp b/engine/src/bullet/native/com_jme3_bullet_joints_ConeJoint.cpp index a6d33435d..ad64cd596 100644 --- a/engine/src/bullet/native/com_jme3_bullet_joints_ConeJoint.cpp +++ b/engine/src/bullet/native/com_jme3_bullet_joints_ConeJoint.cpp @@ -73,12 +73,12 @@ extern "C" { jmeClasses::initJavaClasses(env); btRigidBody* bodyA = (btRigidBody*) bodyIdA; btRigidBody* bodyB = (btRigidBody*) bodyIdB; - btMatrix3x3* mtx1 = &btMatrix3x3(); - btMatrix3x3* mtx2 = &btMatrix3x3(); - btTransform transA = btTransform(*mtx1); + btMatrix3x3 mtx1 = btMatrix3x3(); + btMatrix3x3 mtx2 = btMatrix3x3(); + btTransform transA = btTransform(mtx1); jmeBulletUtil::convert(env, pivotA, &transA.getOrigin()); jmeBulletUtil::convert(env, rotA, &transA.getBasis()); - btTransform transB = btTransform(*mtx2); + btTransform transB = btTransform(mtx2); jmeBulletUtil::convert(env, pivotB, &transB.getOrigin()); jmeBulletUtil::convert(env, rotB, &transB.getBasis()); btConeTwistConstraint* joint = new btConeTwistConstraint(*bodyA, *bodyB, transA, transB); diff --git a/engine/src/bullet/native/com_jme3_bullet_joints_Point2PointJoint.cpp b/engine/src/bullet/native/com_jme3_bullet_joints_Point2PointJoint.cpp index 7dd15e81a..e32455571 100644 --- a/engine/src/bullet/native/com_jme3_bullet_joints_Point2PointJoint.cpp +++ b/engine/src/bullet/native/com_jme3_bullet_joints_Point2PointJoint.cpp @@ -117,11 +117,11 @@ extern "C" { btRigidBody* bodyA = (btRigidBody*) bodyIdA; btRigidBody* bodyB = (btRigidBody*) bodyIdB; //TODO: matrix not needed? - btMatrix3x3* mtx1=&btMatrix3x3(); - btMatrix3x3* mtx2=&btMatrix3x3(); - btTransform transA = btTransform(*mtx1); + btMatrix3x3 mtx1=btMatrix3x3(); + btMatrix3x3 mtx2=btMatrix3x3(); + btTransform transA = btTransform(mtx1); jmeBulletUtil::convert(env, pivotA, &transA.getOrigin()); - btTransform transB = btTransform(*mtx2); + btTransform transB = btTransform(mtx2); jmeBulletUtil::convert(env, pivotB, &transB.getOrigin()); btHingeConstraint* joint = new btHingeConstraint(*bodyA, *bodyB, transA, transB); return (long) joint; diff --git a/engine/src/bullet/native/com_jme3_bullet_joints_SixDofJoint.cpp b/engine/src/bullet/native/com_jme3_bullet_joints_SixDofJoint.cpp index d3037ed7c..cb201561d 100644 --- a/engine/src/bullet/native/com_jme3_bullet_joints_SixDofJoint.cpp +++ b/engine/src/bullet/native/com_jme3_bullet_joints_SixDofJoint.cpp @@ -124,12 +124,12 @@ extern "C" { jmeClasses::initJavaClasses(env); btRigidBody* bodyA = (btRigidBody*) bodyIdA; btRigidBody* bodyB = (btRigidBody*) bodyIdB; - btMatrix3x3* mtx1 = &btMatrix3x3(); - btMatrix3x3* mtx2 = &btMatrix3x3(); - btTransform transA = btTransform(*mtx1); + btMatrix3x3 mtx1 = btMatrix3x3(); + btMatrix3x3 mtx2 = btMatrix3x3(); + btTransform transA = btTransform(mtx1); jmeBulletUtil::convert(env, pivotA, &transA.getOrigin()); jmeBulletUtil::convert(env, rotA, &transA.getBasis()); - btTransform transB = btTransform(*mtx2); + btTransform transB = btTransform(mtx2); jmeBulletUtil::convert(env, pivotB, &transB.getOrigin()); jmeBulletUtil::convert(env, rotB, &transB.getBasis()); btGeneric6DofConstraint* joint = new btGeneric6DofConstraint(*bodyA, *bodyB, transA, transB, useLinearReferenceFrameA); diff --git a/engine/src/bullet/native/com_jme3_bullet_joints_SliderJoint.cpp b/engine/src/bullet/native/com_jme3_bullet_joints_SliderJoint.cpp index 89146d006..7922ac968 100644 --- a/engine/src/bullet/native/com_jme3_bullet_joints_SliderJoint.cpp +++ b/engine/src/bullet/native/com_jme3_bullet_joints_SliderJoint.cpp @@ -666,12 +666,12 @@ extern "C" { jmeClasses::initJavaClasses(env); btRigidBody* bodyA = (btRigidBody*) bodyIdA; btRigidBody* bodyB = (btRigidBody*) bodyIdB; - btMatrix3x3* mtx1=&btMatrix3x3(); - btMatrix3x3* mtx2=&btMatrix3x3(); - btTransform transA = btTransform(*mtx1); + btMatrix3x3 mtx1=btMatrix3x3(); + btMatrix3x3 mtx2=btMatrix3x3(); + btTransform transA = btTransform(mtx1); jmeBulletUtil::convert(env, pivotA, &transA.getOrigin()); jmeBulletUtil::convert(env, rotA, &transA.getBasis()); - btTransform transB = btTransform(*mtx2); + btTransform transB = btTransform(mtx2); jmeBulletUtil::convert(env, pivotB, &transB.getOrigin()); jmeBulletUtil::convert(env, rotB, &transB.getBasis()); btSliderConstraint* joint = new btSliderConstraint(*bodyA, *bodyB, transA, transB, useLinearReferenceFrameA);