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);
offset |
Offset See also |