Sprite::pointTowards()
Points towards a position.
Syntax
Java
.pointTowards(position)
.pointTowards(sprite)
Parameters
| Name | Data Type | Description |
|---|---|---|
| position | Vector2 | where to point |
| sprite | Sprite | the sprite to point at |
Return
void
Points towards a position.
.pointTowards(position)
.pointTowards(sprite)
| Name | Data Type | Description |
|---|---|---|
| position | Vector2 | where to point |
| sprite | Sprite | the sprite to point at |
void