/*
- * Sixth - System for data storage, computation, exploration and interaction.
- * Copyright ©2012-2016, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
- *
+ * Sixth 3D engine. Copyright ©2012-2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ *
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 3 of the GNU Lesser General Public License
* or later as published by the Free Software Foundation.
+ *
*/
package eu.svjatoslav.sixth.e3d.gui.humaninput;
* (1 + (avatar.getMovementSpeed() / 10));
if (inputTracker.isKeyPressed(KeyboardHelper.UP))
- avatar.getMovementDirection().z += actualAcceleration;
+ avatar.getMovementVector().z += actualAcceleration;
if (inputTracker.isKeyPressed(KeyboardHelper.DOWN))
- avatar.getMovementDirection().z -= actualAcceleration;
+ avatar.getMovementVector().z -= actualAcceleration;
if (inputTracker.isKeyPressed(KeyboardHelper.RIGHT))
- avatar.getMovementDirection().x += actualAcceleration;
+ avatar.getMovementVector().x += actualAcceleration;
if (inputTracker.isKeyPressed(KeyboardHelper.LEFT))
- avatar.getMovementDirection().x -= actualAcceleration;
+ avatar.getMovementVector().x -= actualAcceleration;
avatar.enforceSpeedLimit();
}