fix for issue #1026: TestPhysicsCharacter spins Sinbad too fast

accellbaker
Stephen Gold 6 years ago
parent 6ab7c0d91f
commit 512b096cb4
  1. 6
      jme3-examples/src/main/java/jme3test/bullet/TestPhysicsCharacter.java

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2012 jMonkeyEngine All rights reserved. <p/>
* Copyright (c) 2009-2019 jMonkeyEngine All rights reserved. <p/>
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
@ -139,10 +139,10 @@ public class TestPhysicsCharacter extends SimpleApplication implements ActionLis
walkDirection.addLocal(camLeft.negate());
}
if (leftRotate) {
viewDirection.addLocal(camLeft.mult(0.02f));
viewDirection.addLocal(camLeft.mult(tpf));
} else
if (rightRotate) {
viewDirection.addLocal(camLeft.mult(0.02f).negate());
viewDirection.addLocal(camLeft.mult(tpf).negate());
}
if (forward) {
walkDirection.addLocal(camDir);

Loading…
Cancel
Save