Skip to content

Commit c8a9199

Browse files
stephengoldAli-RS
authored andcommitted
solve issue #1975: TestAttachDriver doesn't reset properly (#1976)
1 parent d8951e8 commit c8a9199

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

jme3-examples/src/main/java/jme3test/bullet/TestAttachDriver.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2009-2021 jMonkeyEngine
2+
* Copyright (c) 2009-2023 jMonkeyEngine
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without
@@ -291,7 +291,9 @@ public void onAction(String binding, boolean value, float tpf) {
291291
vehicle.setAngularVelocity(Vector3f.ZERO);
292292
vehicle.resetSuspension();
293293
bridge.setPhysicsLocation(new Vector3f(0,1.4f,4));
294-
bridge.setPhysicsRotation(Quaternion.DIRECTION_Z.toRotationMatrix());
294+
bridge.setPhysicsRotation(Matrix3f.IDENTITY);
295+
bridge.setLinearVelocity(Vector3f.ZERO);
296+
bridge.setAngularVelocity(Vector3f.ZERO);
295297
}
296298
}
297299
}

0 commit comments

Comments
 (0)