fix for issue #1026: TestPhysicsCharacter spins Sinbad too fast
This commit is contained in:
parent
db1b8f9eb4
commit
62ce6ca406
@ -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…
x
Reference in New Issue
Block a user