setPosition


Description:

public void setPosition (Vector2f position)

set the position of the object

This function completely overwrites the previous position. See the move function to apply an offset based on the previous position instead. The default position of a transformable object is (0, 0).

Parameters:

position

New position

See also:

move, getPosition