sm.shape.createPart

Create a new part

Kind: Function

Environments: Game

Game

sm.shape.createPart( uuid, position, rotation, dynamic, forceSpawn, world )

Open the full Game reference

Availability: Server only

Parameters:

Name Type Description
uuid Uuid The uuid of the shape.
position Vec3 The shape's world position.
rotation Quat The shape's world rotation. Defaults to no rotation (Optional)
dynamic (optional) boolean Set true if the shape is dynamic or false if the shape is static. Defaults to true (Optional)
forceSpawn (optional) boolean Set true to force spawn the shape even if it will cause collision. Defaults to true (Optional)
world (optional) World The world to create the part in. Uses the script's world by default. (Optional)

Returns:

Type Description
Shape The created part