Class: BoundingShape

rat.collision2D. BoundingShape

new BoundingShape(data)

Type data structure layout defines a bounding shape (with the options of shape groups)
Parameters:
Name Type Description
data Array The layout of data is [ <{ type: 'circle', x:, y:, radius:, , children:[ ] }> <{ type: 'rect', x:, y:, w:, h:, children:[ ] }> ]
Source:

Methods

debugDraw(at, boundingColor, shapesColor)

Draw this bounding shape.
Parameters:
Name Type Description
at Object
boundingColor Object
shapesColor Object
Source: