Sprite::pointInDirection()
Points the sprite in the specified direction.
Syntax
Java
.pointInDirection(degrees)
.pointInDirection(v)
Parameters
| Name | Data Type | Description |
|---|---|---|
| degrees | double | The direction in degrees to point the sprite. 0 degrees is to the right, 90 degrees is up, 180 degrees is to the left, and 270 degrees is down. |
| v | Vector2 | the target vector to point towards |
Return
void
