Positions the Triangle so that it is centered on the given coordinates.
name | type | arguments | description |
---|---|---|---|
triangle | Phaser.Geom.Triangle |
The triangle to be positioned. |
|
x | number |
The horizontal coordinate to center on. |
|
y | number |
The vertical coordinate to center on. |
|
centerFunc | CenterFunction | <optional> |
The function used to center the triangle. Defaults to Centroid centering. |
The Triangle that was centered.