returns collision betweens shapes two shapes
Check if two collision objects are colliding. Automatically decided which collision function to use.
| Parameter | Type | Description |
|---|---|---|
| a | any collision object | first object to check collision |
| b | any collision object | second object to check collision |
Returns true if a Point and a Point are colliding.
| Parameter | Type | Description |
|---|---|---|
| a | Point | first object to check collision |
| b | Point | second object to check collision |
Returns true if a Point and a Box are colliding.
| Parameter | Type | Description |
|---|---|---|
| a | Point | first object to check collision |
| b | Box | second object to check collision |
Returns true if a Point and a Circle are colliding.
| Parameter | Type | Description |
|---|---|---|
| a | Point | first object to check collision |
| b | Circle | second object to check collision |
Returns true if a Point and a Line are colliding.
| Parameter | Type | Description |
|---|---|---|
| a | Point | first object to check collision |
| b | Line | second object to check collision |
Returns true if a Point and a Polygon are colliding.
| Parameter | Type | Description |
|---|---|---|
| a | Point | first object to check collision |
| b | Polygon | second object to check collision |
Returns true if a Box and a Point are colliding.
| Parameter | Type | Description |
|---|---|---|
| a | Box | first object to check collision |
| b | Point | second object to check collision |
Returns true if a Box and a Box are colliding.
| Parameter | Type | Description |
|---|---|---|
| a | Box | first object to check collision |
| b | Box | second object to check collision |
Returns true if a Box and a Circle are colliding.
| Parameter | Type | Description |
|---|---|---|
| a | Box | first object to check collision |
| b | Circle | second object to check collision |
Returns true if a Box and a Line are colliding.
| Parameter | Type | Description |
|---|---|---|
| a | Box | first object to check collision |
| b | Line | second object to check collision |
Returns true if a Box and a Polygon are colliding.
| Parameter | Type | Description |
|---|---|---|
| a | Box | first object to check collision |
| b | Polygon | second object to check collision |
Returns true if a Circle and a Point are colliding.
| Parameter | Type | Description |
|---|---|---|
| a | Circle | first object to check collision |
| b | Point | second object to check collision |
Returns true if a Circle and a Box are colliding.
| Parameter | Type | Description |
|---|---|---|
| a | Circle | first object to check collision |
| b | Box | second object to check collision |
Returns true if a Circle and a Circle are colliding.
| Parameter | Type | Description |
|---|---|---|
| a | Circle | first object to check collision |
| b | Circle | second object to check collision |
Returns true if a Line and a Line are colliding.
| Parameter | Type | Description |
|---|---|---|
| a | Circle | first object to check collision |
| b | Line | second object to check collision |
Returns true if a Polygon and a Polygon are colliding.
| Parameter | Type | Description |
|---|---|---|
| a | Circle | first object to check collision |
| b | Polygon | second object to check collision |
Returns true if a Line and a Point are colliding.
| Parameter | Type | Description |
|---|---|---|
| a | Line | first object to check collision |
| b | Point | second object to check collision |
Returns true if a Line and a Box are colliding.
| Parameter | Type | Description |
|---|---|---|
| a | Line | first object to check collision |
| b | Box | second object to check collision |
Returns true if a Line and a Circle are colliding.
| Parameter | Type | Description |
|---|---|---|
| a | Line | first object to check collision |
| b | Circle | second object to check collision |
Returns true if a Line and a Line are colliding.
| Parameter | Type | Description |
|---|---|---|
| a | Line | first object to check collision |
| b | Line | second object to check collision |
Returns true if a Polygon and a Polygon are colliding.
| Parameter | Type | Description |
|---|---|---|
| a | Line | first object to check collision |
| b | Polygon | second object to check collision |
Returns true if a Polygon and a Point are colliding.
| Parameter | Type | Description |
|---|---|---|
| a | Polygon | first object to check collision |
| b | Point | second object to check collision |
Returns true if a Polygon and a Box are colliding.
| Parameter | Type | Description |
|---|---|---|
| a | Polygon | first object to check collision |
| b | Box | second object to check collision |
Returns true if a Polygon and a Circle are colliding.
| Parameter | Type | Description |
|---|---|---|
| a | Polygon | first object to check collision |
| b | Circle | second object to check collision |
Returns true if a Line and a Line are colliding.
| Parameter | Type | Description |
|---|---|---|
| a | Polygon | first object to check collision |
| b | Line | second object to check collision |
Returns true if a Polygon and a Polygon are colliding.
| Parameter | Type | Description |
|---|---|---|
| a | Polygon | first object to check collision |
| b | Polygon | second object to check collision |