Browse Source

fix for issue #1026: TestPhysicsCharacter spins Sinbad too fast

Stephen Gold 6 years ago
parent
commit
62ce6ca406

+ 3 - 3
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
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are met:
  * 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());
             walkDirection.addLocal(camLeft.negate());
         }
         }
         if (leftRotate) {
         if (leftRotate) {
-            viewDirection.addLocal(camLeft.mult(0.02f));
+            viewDirection.addLocal(camLeft.mult(tpf));
         } else
         } else
         if (rightRotate) {
         if (rightRotate) {
-            viewDirection.addLocal(camLeft.mult(0.02f).negate());
+            viewDirection.addLocal(camLeft.mult(tpf).negate());
         }
         }
         if (forward) {
         if (forward) {
             walkDirection.addLocal(camDir);
             walkDirection.addLocal(camDir);