Home Reference Source
public class | source

Result

An object used to collect the detailed results of a collision test

Note: It is highly recommended you recycle the same Result object if possible in order to avoid wasting memory

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

The source body tested

public

True if A is completely contained within B

public

The target body tested against

public

True if a collision was detected

public

The magnitude of the shortest axis of overlap

public

The X direction of the shortest axis of overlap

public

The Y direction of the shortest axis of overlap

Public Constructors

public constructor() source

Public Members

public a: Circle | Polygon | Point source

The source body tested

public a_in_b: Boolean source

True if A is completely contained within B

public b: Circle | Polygon | Point source

The target body tested against

public collision: Boolean source

True if a collision was detected

public overlap: Number source

The magnitude of the shortest axis of overlap

public overlap_x: Number source

The X direction of the shortest axis of overlap

public overlap_y: Number source

The Y direction of the shortest axis of overlap