Body.createWedge
Creates a wedge attached to a body. The wedge is oriented with one
Kind: Function
Environments: Game
Game
body:createWedge( uuid, size, position, z-axis, x-axis, forceAccept )
Availability: Server only
cathetus along the Y-axis and the other along the Z-axis, forming a right angle. The wedge's
rotation is controlled by z-axis and x-axis parameters, similar to standard part rotation.
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. |
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) |