A specialized object that contains the result of a collision in the context of the ClockwiseSweepPolygon. This class is not designed or intended for use outside of that context.

Alias

CollisionResult

Properties

target: PolygonVertex

The vertex that was the target of this result

collisions: PolygonVertex[]

The array of collision points which apply to this result

cwEdges: EdgeSet

The set of edges connected to the target vertex that continue clockwise

ccwEdges: EdgeSet

The set of edges connected to the target vertex that continue counter-clockwise

isBehind: boolean

Is the target vertex for this result behind some closer active edge?

isLimited: boolean

Does the target vertex for this result impose a limited collision?

wasLimited: boolean

Has the set of collisions for this result encountered a limited edge?

limitedCW: boolean = false

Is this result limited in the clockwise direction?

limitedCCW: boolean = false

Is this result limited in the counter-clockwise direction?

blockedCW: boolean = false

Is this result blocking in the clockwise direction?

blockedCCW: boolean = false

Is this result blocking in the counter-clockwise direction?

blockedCWPrev: boolean = false

Previously blocking in the clockwise direction?

blockedCCWPrev: boolean = false

Previously blocking in the counter-clockwise direction?