sm.shape.createBlock
Create a new block
Kind: Function
Environments: Game
Game
sm.shape.createBlock( uuid, size, position, rotation, dynamic, forceSpawn )
Availability: Server only
Parameters:
| Name | Type | Description |
|---|---|---|
uuid |
Uuid | The uuid of the shape. |
size |
Vec3 | The size of the block. |
position |
Vec3 | The shape's world position. |
rotation (optional) |
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) |
Returns:
| Type | Description |
|---|---|
| Shape | The created block |