Phaser API Documentation

  Version: 
getInCenter([local])

Description:

Calculates and returns the in-center position of this Face.

Parameters:

name type arguments Default description
local boolean <optional> true

Return the in center from the un-transformed vertex positions (true), or transformed? (false)

Returns:
Description:

A Vector2 containing the in center position of this Face.

Since: 3.50.0
Source: src/geom/mesh/Face.js (Line 107)