- bullet native: fix two variables from temprorary

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8397 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 13 years ago
parent 06f329611b
commit 8e8d612a7a
  1. 9
      engine/src/bullet/native/com_jme3_bullet_joints_SixDofSpringJoint.cpp
  2. 3
      engine/src/bullet/native/com_jme3_bullet_objects_PhysicsVehicle.cpp

@ -78,15 +78,6 @@ JNIEXPORT jlong JNICALL Java_com_jme3_bullet_joints_SixDofSpringJoint_createJoin
jmeClasses::initJavaClasses(env);
btRigidBody* bodyA = (btRigidBody*) bodyIdA;
btRigidBody* bodyB = (btRigidBody*) bodyIdB;
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);
jmeBulletUtil::convert(env, pivotB, &transB->getOrigin());
jmeBulletUtil::convert(env, rotB, &transB->getBasis());
*/
btTransform transA;
jmeBulletUtil::convert(env, pivotA, &transA.getOrigin());
jmeBulletUtil::convert(env, rotA, &transA.getBasis());

@ -231,7 +231,8 @@ extern "C" {
env->ThrowNew(newExc, "The native object does not exist.");
return;
}
jmeBulletUtil::convert(env, &vehicle->getForwardVector(), out);
btVector3 forwardVector = vehicle->getForwardVector();
jmeBulletUtil::convert(env, &forwardVector, out);
}
/*

Loading…
Cancel
Save