Skip to main content

renderer.getSkinRotationCenter()

Gets the rotation center of a skin.

Syntax

renderer.getSkinRotationCenter(skinID)

Parameters

skinID

Type: number

The ID of the skin.

Returns

Type: Array<number>

An array [x, y] representing the rotation center relative to the skin's top-left corner.

Example

const [cx, cy] = renderer.getSkinRotationCenter(skinId);

See Also