Constructor Summary
| Public Constructor | ||
| public |
constructor(x: Number, y: Number, padding: Number) |
|
Inherited Summary
| From class Body | ||
| public static |
Creates a Result used to collect the detailed results of a collision test |
|
| public |
The amount to pad the bounding volume when testing for potential collisions |
|
| public |
The X coordinate of the body |
|
| public |
The Y coordinate of the body |
|
| public |
Determines if the body is colliding with another body |
|
| public |
Creates a Result used to collect the detailed results of a collision test |
|
| public |
potentials(): Array<Body> Returns a list of potential collisions |
|
| public |
remove() Removes the body from its current collision system |
|
| From class Polygon | ||
| public |
The angle of the body in radians |
|
| public |
The scale of the body along the X axis |
|
| public |
The scale of the body along the Y axis |
|
| public |
draw(context: CanvasRenderingContext2D) Draws the polygon to a CanvasRenderingContext2D's current path |
|
| public |
Sets the points making up the polygon. |
|
