Body.createBlock

Create a block on body

Kind: Function

Environments: Game

Game

body:createBlock( uuid, size, position, forceAccept )

Open the full Game reference

Availability: Server only

Parameters:

Name Type Description
body Body The parent body.
uuid Uuid The uuid of the shape.
size Vec3 The shape's size.
position Vec3 The shape's local position.
forceAccept (optional) boolean Set true to force the body to accept the shape. (Defaults to true)

Returns:

Type Description
Shape The created block