new BoxShape(body, width, height) → {cp.PolyShape}
- Source:
Initialize a box shaped polygon shape.
Parameters:
Name | Type | Description |
---|---|---|
body |
cp.Body | Body of the box shape. |
width |
number | Shape width. |
height |
number | Shape height. |
Returns:
- Type
- cp.PolyShape