Body.createPart

Create a part on body

Kind: Function

Environments: Game

Game

body:createPart( uuid, position, z-axis, x-axis, 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.
position Vec3 The shape's local position.
z-axis Vec3 The shape's local z direction.
x-axis Vec3 The shape's local x direction.
forceAccept (optional) boolean Set true to force the body to accept the shape. (Defaults to true)

Returns:

Type Description
Shape The created part