sm.shape.createWedge
Creates a wedge. The wedge is oriented with one
Kind: Function
Environments: Game
Game
sm.shape.createWedge( uuid, size, position, rotation, dynamic, forceSpawn )
Availability: Server only
cathetus along the Y-axis and the other along the Z-axis, forming a right angle.
Parameters:
| Name | Type | Description |
|---|---|---|
uuid |
Uuid | The uuid of the shape. |
size |
Vec3 | The size of the wedge. |
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 wedge |