API Docs for: 0.6.0
Show:

OverlapKeeper Class

Keeps track of overlaps in the current state and the last step state.

Constructor

OverlapKeeper

()

Methods

bodiesAreOverlapping

(
  • bodyA
  • bodyB
)
Boolean

Checks if two bodies are currently overlapping.

Parameters:

Returns:

Boolean:

setOverlapping

(
  • bodyA
  • shapeA
  • bodyB
  • shapeB
)

Parameters:

tick

()

Ticks one step forward in time. This will move the current overlap state to the "old" overlap state, and create a new one as current.