From 5374c66636c564f778f3aeeb23bcaf9c3d2ca0e3 Mon Sep 17 00:00:00 2001 From: SkidRunner Date: Tue, 3 Jan 2017 21:39:47 -0600 Subject: [PATCH] Removed tempvars from update. --- .../src/main/java/jme3test/games/RollingTheMonkey.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/jme3-examples/src/main/java/jme3test/games/RollingTheMonkey.java b/jme3-examples/src/main/java/jme3test/games/RollingTheMonkey.java index 22612b5a0..1fd474cf2 100644 --- a/jme3-examples/src/main/java/jme3test/games/RollingTheMonkey.java +++ b/jme3-examples/src/main/java/jme3test/games/RollingTheMonkey.java @@ -328,9 +328,7 @@ public class RollingTheMonkey extends SimpleApplication implements ActionListene pickUp.rotate(pickUpSpeed, pickUpSpeed, pickUpSpeed); } - TempVars tempVars = TempVars.get(); - - Vector3f centralForce = tempVars.vect1.set(Vector3f.ZERO); + Vector3f centralForce = new Vector3f(); if(keyForward) centralForce.addLocal(cam.getDirection()); if(keyBackward) centralForce.addLocal(cam.getDirection().negate()); @@ -344,7 +342,6 @@ public class RollingTheMonkey extends SimpleApplication implements ActionListene player.applyCentralForce(centralForce); // apply force to player } - tempVars.release(); cam.lookAt(player.getPhysicsLocation(), Vector3f.UNIT_Y); }