Shape.transformPoint

Transform a world point to the local shape transform.

Kind: Function

Environments: Game

Game

shape:transformPoint( vector )

Open the full Game reference

local localPos = self.shape:transformPoint( worldPos )

Parameters:

Name Type Description
shape Shape The shape.
vector Vec3 The world point.

Returns:

Type Description
Vec3 The local point.