Sprite::setDirection()
Sets the direction of the sprite to a given degrees. When this value is 0 the sprite move right, when it is 180 is moves to the left.
Syntax
Java
.setDirection(degrees)
.setDirection(v)
Parameters
| Name | Data Type | Description |
|---|---|---|
| degrees | double | between 0 and 360 |
| v | Vector2 | a vector |
Return
void
