File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
jme3-examples/src/main/java/jme3test/games Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -328,9 +328,7 @@ public void simpleUpdate(float tpf) {
328328 pickUp .rotate (pickUpSpeed , pickUpSpeed , pickUpSpeed );
329329 }
330330
331- TempVars tempVars = TempVars .get ();
332-
333- Vector3f centralForce = tempVars .vect1 .set (Vector3f .ZERO );
331+ Vector3f centralForce = new Vector3f ();
334332
335333 if (keyForward ) centralForce .addLocal (cam .getDirection ());
336334 if (keyBackward ) centralForce .addLocal (cam .getDirection ().negate ());
@@ -344,7 +342,6 @@ public void simpleUpdate(float tpf) {
344342
345343 player .applyCentralForce (centralForce ); // apply force to player
346344 }
347- tempVars .release ();
348345
349346 cam .lookAt (player .getPhysicsLocation (), Vector3f .UNIT_Y );
350347 }
You can’t perform that action at this time.
0 commit comments