API Docs for: 0.7.1
Show:

()

## Methods

### `boundingRadiusCheck`

(
• `bodyA`
• `bodyB`
)
Boolean

Check whether the bounding radius of two bodies overlap.

#### Parameters:

• `bodyA` Body
• `bodyB` Body

Boolean:

### `boundingRadiusCheck`

(
• `bodyA`
• `bodyB`
)
Boolean

Check whether the bounding radius of two bodies overlap.

#### Parameters:

• `bodyA` Body
• `bodyB` Body

Boolean:

### `boundingRadiusCheck`

(
• `bodyA`
• `bodyB`
)
Boolean

Check whether the bounding radius of two bodies overlap.

#### Parameters:

• `bodyA` Body
• `bodyB` Body

Boolean:

### `canCollide`

(
• `bodyA`
• `bodyB`
)
Boolean

Check whether two bodies are allowed to collide at all.

#### Parameters:

• `bodyA` Body
• `bodyB` Body

Boolean:

### `getCollisionPairs`

(
• `world`
)
Array

Get all potential intersecting body pairs.

#### Parameters:

• `world` World

The world to search in.

#### Returns:

Array:

An array of the bodies, ordered in pairs. Example: A result of [a,b,c,d] means that the potential pairs are: (a,b), (c,d).

### `setWorld`

(
• `world`
)

Set the world that we are searching for collision pairs in.

#### Parameters:

• `world` World

## Properties

### `AABB`

Number static

Axis aligned bounding box type.

### `BOUNDING_CIRCLE`

Number static

Bounding circle type.

### `boundingVolumeType`

Number

The bounding volume type to use in the broadphase algorithms. Should be set to Broadphase.AABB or Broadphase.BOUNDING_CIRCLE.

### `result`

Array

The resulting overlapping pairs. Will be filled with results during .getCollisionPairs().

### `world`

World

The world to search for collision pairs in. To change it, use .setWorld()