move


Description:

public void move (Vector2f offset)

Move the object by a given offset.

This function adds to the current position of the object, unlike setPosition which overwrites it. Thus, it is equivalent to the following code:

object.setPosition(object.getPosition() + offset);

Parameters:

offset

Offset See also

See also:

setPosition