- bullet native: fix changed signature for PhysicsRigidBody methods

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8404 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 13 years ago
parent 3bf64fb343
commit 242af7aa5d
  1. 12
      engine/src/bullet/com/jme3/bullet/objects/PhysicsRigidBody.java

@ -391,11 +391,13 @@ public class PhysicsRigidBody extends PhysicsCollisionObject {
//
// private native void setRestitution(long objectId, float factor);
//
// public void setAngularDamping(float angularDamping) {
//// constructionInfo.angularDamping = angularDamping;
//// rBody.setDamping(constructionInfo.linearDamping, angularDamping);
//
// }
public void setLinearDamping(float linearDamping) {
setDamping(objectId, linearDamping, getAngularDamping());
}
public void setAngularDamping(float angularDamping) {
setAngularDamping(objectId, angularDamping);
}
private native void setAngularDamping(long objectId, float factor);
public float getLinearDamping() {

Loading…
Cancel
Save