From 242af7aa5d29e29d6b2eb043639c42459bfd377b Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Sat, 15 Oct 2011 21:35:04 +0000 Subject: [PATCH] - bullet native: fix changed signature for PhysicsRigidBody methods git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8404 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../com/jme3/bullet/objects/PhysicsRigidBody.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/engine/src/bullet/com/jme3/bullet/objects/PhysicsRigidBody.java b/engine/src/bullet/com/jme3/bullet/objects/PhysicsRigidBody.java index 21e9bfc79..6a1841cd6 100644 --- a/engine/src/bullet/com/jme3/bullet/objects/PhysicsRigidBody.java +++ b/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() {