|
|
@ -737,8 +737,8 @@ public class PhysicsRigidBody extends PhysicsCollisionObject { |
|
|
|
setKinematic(capsule.readBoolean("kinematic", false)); |
|
|
|
setKinematic(capsule.readBoolean("kinematic", false)); |
|
|
|
|
|
|
|
|
|
|
|
setRestitution(capsule.readFloat("restitution", 0)); |
|
|
|
setRestitution(capsule.readFloat("restitution", 0)); |
|
|
|
Vector3f angularFactor = (Vector3f) capsule.readSavable("angularFactor", Vector3f.NAN.clone()); |
|
|
|
Vector3f angularFactor = (Vector3f) capsule.readSavable("angularFactor", null); |
|
|
|
if(angularFactor == Vector3f.NAN) { |
|
|
|
if(angularFactor == null) { |
|
|
|
setAngularFactor(capsule.readFloat("angularFactor", 1)); |
|
|
|
setAngularFactor(capsule.readFloat("angularFactor", 1)); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
setAngularFactor(angularFactor); |
|
|
|
setAngularFactor(angularFactor); |
|
|
|