Shape.getClosestBlockLocalPosition

Transform a world position to the closest block's local position in a shape.

Kind: Function

Environments: Game

Game

shape:getClosestBlockLocalPosition( position )

Open the full Game reference

Parameters:

Name Type Description
shape Shape The block shape.
position Vec3 The world position.

Returns:

Type Description
Vec3 The closest position.