translate method
Method used to translate component
Implementation
void translate(Vector2 displacement) {
this.displacement = displacement;
_updateLastDirection(displacement);
position.add(displacement);
}
Method used to translate component
void translate(Vector2 displacement) {
this.displacement = displacement;
_updateLastDirection(displacement);
position.add(displacement);
}