collision

returns collision betweens shapes two shapes

virtuosity.collisionManager.collision

Methods


Methods

auto

Check if two collision objects are colliding. Automatically decided which collision function to use.

virtuosity.collisionManager.collision.auto(a, b);


Parameter Type Description
a any collision object first object to check collision
b any collision object second object to check collision

pointPoint

Returns true if a Point and a Point are colliding.

virtuosity.collisionManager.collision.pointPoint(a, b);


Parameter Type Description
a Point first object to check collision
b Point second object to check collision

pointBox

Returns true if a Point and a Box are colliding.

virtuosity.collisionManager.collision.pointBox(a, b);


Parameter Type Description
a Point first object to check collision
b Box second object to check collision

pointCircle

Returns true if a Point and a Circle are colliding.

virtuosity.collisionManager.collision.pointCircle(a, b);


Parameter Type Description
a Point first object to check collision
b Circle second object to check collision

pointLine

Returns true if a Point and a Line are colliding.

virtuosity.collisionManager.collision.pointLine(a, b);


Parameter Type Description
a Point first object to check collision
b Line second object to check collision

pointPolygon

Returns true if a Point and a Polygon are colliding.

virtuosity.collisionManager.collision.pointPolygon(a, b);


Parameter Type Description
a Point first object to check collision
b Polygon second object to check collision

boxPoint

Returns true if a Box and a Point are colliding.

virtuosity.collisionManager.collision.boxPoint(a, b);


Parameter Type Description
a Box first object to check collision
b Point second object to check collision

boxBox

Returns true if a Box and a Box are colliding.

virtuosity.collisionManager.collision.boxBox(a, b);


Parameter Type Description
a Box first object to check collision
b Box second object to check collision

boxCircle

Returns true if a Box and a Circle are colliding.

virtuosity.collisionManager.collision.boxCircle(a, b);


Parameter Type Description
a Box first object to check collision
b Circle second object to check collision

boxLine

Returns true if a Box and a Line are colliding.

virtuosity.collisionManager.collision.boxLine(a, b);


Parameter Type Description
a Box first object to check collision
b Line second object to check collision

boxPolygon

Returns true if a Box and a Polygon are colliding.

virtuosity.collisionManager.collision.boxPolygon(a, b);


Parameter Type Description
a Box first object to check collision
b Polygon second object to check collision

circlePoint

Returns true if a Circle and a Point are colliding.

virtuosity.collisionManager.collision.circlePoint(a, b);


Parameter Type Description
a Circle first object to check collision
b Point second object to check collision

circleBox

Returns true if a Circle and a Box are colliding.

virtuosity.collisionManager.collision.circleBox(a, b);


Parameter Type Description
a Circle first object to check collision
b Box second object to check collision

circleCircle

Returns true if a Circle and a Circle are colliding.

virtuosity.collisionManager.collision.circleCircle(a, b);


Parameter Type Description
a Circle first object to check collision
b Circle second object to check collision

circleLine

Returns true if a Line and a Line are colliding.

virtuosity.collisionManager.collision.circleLine(a, b);


Parameter Type Description
a Circle first object to check collision
b Line second object to check collision

circlePolygon

Returns true if a Polygon and a Polygon are colliding.

virtuosity.collisionManager.collision.circlePolygon(a, b);


Parameter Type Description
a Circle first object to check collision
b Polygon second object to check collision

linePoint

Returns true if a Line and a Point are colliding.

virtuosity.collisionManager.collision.linePoint(a, b);


Parameter Type Description
a Line first object to check collision
b Point second object to check collision

lineBox

Returns true if a Line and a Box are colliding.

virtuosity.collisionManager.collision.lineBox(a, b);


Parameter Type Description
a Line first object to check collision
b Box second object to check collision

lineCircle

Returns true if a Line and a Circle are colliding.

virtuosity.collisionManager.collision.lineCircle(a, b);


Parameter Type Description
a Line first object to check collision
b Circle second object to check collision

lineLine

Returns true if a Line and a Line are colliding.

virtuosity.collisionManager.collision.lineLine(a, b);


Parameter Type Description
a Line first object to check collision
b Line second object to check collision

linePolygon

Returns true if a Polygon and a Polygon are colliding.

virtuosity.collisionManager.collision.linePolygon(a, b);


Parameter Type Description
a Line first object to check collision
b Polygon second object to check collision

polygonPoint

Returns true if a Polygon and a Point are colliding.

virtuosity.collisionManager.collision.polygonPoint(a, b);


Parameter Type Description
a Polygon first object to check collision
b Point second object to check collision

polygonBox

Returns true if a Polygon and a Box are colliding.

virtuosity.collisionManager.collision.polygonBox(a, b);


Parameter Type Description
a Polygon first object to check collision
b Box second object to check collision

polygonCircle

Returns true if a Polygon and a Circle are colliding.

virtuosity.collisionManager.collision.polygonCircle(a, b);


Parameter Type Description
a Polygon first object to check collision
b Circle second object to check collision

polygonLine

Returns true if a Line and a Line are colliding.

virtuosity.collisionManager.collision.polygonLine(a, b);


Parameter Type Description
a Polygon first object to check collision
b Line second object to check collision

polygonPolygon

Returns true if a Polygon and a Polygon are colliding.

virtuosity.collisionManager.collision.polygonPolygon(a, b);


Parameter Type Description
a Polygon first object to check collision
b Polygon second object to check collision