intersect
Script::intersect
Returns information about the intersection of two ColliderShapes.
Declaration
IntersectionInformation intersect(const ColliderShape& collider1, const ColliderShape& collider2);
Parameters
Name |
Type |
Description |
|---|---|---|
collider1 |
const ColliderShape& |
The first collider. |
collider2 |
const ColliderShape& |
The second collider. |
Returns
An IntersectionInformation containing information about the intersection between collider1 and collider2. If there is no intersection between these two colliders, IntersectionInformation::hasIntersected will be false.