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