We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2769f55 commit 36e9b3bCopy full SHA for 36e9b3b
1 file changed
MinieLibrary/src/main/java/com/jme3/bullet/objects/PhysicsRigidBody.java
@@ -1324,8 +1324,12 @@ public void read(JmeImporter importer) throws IOException {
1324
tagInverseInertia, scaleIdentity));
1325
setAngularFactor((Vector3f) capsule.readSavable(
1326
tagAngularFactor, scaleIdentity));
1327
- setGravity((Vector3f) capsule.readSavable(
+
1328
+ // Set gravity but bypass the "adding it to a PhysicsSpace" warning:
1329
+ long objectId = nativeId();
1330
+ setGravity(objectId, (Vector3f) capsule.readSavable(
1331
tagGravity, translateIdentity));
1332
1333
setLinearFactor((Vector3f) capsule.readSavable(
1334
tagLinearFactor, scaleIdentity));
1335
setDamping(capsule.readFloat(tagLinearDamping, 0f),
0 commit comments