Class FreeMove
Inheritance
java.lang.Object
FreeMove
Syntax
public class FreeMove extends SceneComponent
Constructors
FreeMove(float speed)
Declaration
public FreeMove(float speed)
Parameters
Type |
Name |
Description |
float |
speed |
|
FreeMove(int forwardKey, int backKey, int leftKey, int rightKey, float speed)
Declaration
public FreeMove(int forwardKey, int backKey, int leftKey, int rightKey, float speed)
Parameters
Type |
Name |
Description |
int |
forwardKey |
|
int |
backKey |
|
int |
leftKey |
|
int |
rightKey |
|
float |
speed |
|
Methods
getBackKey()
Declaration
Returns
getForwardKey()
Declaration
public int getForwardKey()
Returns
getLeftKey()
Declaration
Returns
getRightKey()
Declaration
Returns
getSpeed()
Declaration
Returns
Declaration
public void input(float delta)
Parameters
Type |
Name |
Description |
float |
delta |
|
move(Vector3f dir, float amt)
Declaration
public void move(Vector3f dir, float amt)
Parameters
Type |
Name |
Description |
Vector3f |
dir |
|
float |
amt |
|
setBackKey(int backKey)
Declaration
public void setBackKey(int backKey)
Parameters
Type |
Name |
Description |
int |
backKey |
|
setForwardKey(int forwardKey)
Declaration
public void setForwardKey(int forwardKey)
Parameters
Type |
Name |
Description |
int |
forwardKey |
|
setLeftKey(int leftKey)
Declaration
public void setLeftKey(int leftKey)
Parameters
Type |
Name |
Description |
int |
leftKey |
|
setRightKey(int rightKey)
Declaration
public void setRightKey(int rightKey)
Parameters
Type |
Name |
Description |
int |
rightKey |
|
setSpeed(float speed)
Declaration
public void setSpeed(float speed)
Parameters
Type |
Name |
Description |
float |
speed |
|