|
|
|
@ -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() { |
|
|
|
|