-
Notifications
You must be signed in to change notification settings - Fork 0
CastResult2D
Stone Hobbs edited this page Jun 27, 2022
·
1 revision
CastResult2D
{
bool success,
Vector2 ray,
Vector2 hitPoint,
Collider2D hitCollider
}
This is a struct to hold information about collisions.
success
true is there was a collision, otherwise false
ray
the difference between hitPoint and the point on the shape that hit it
hitPoint
the point that was hit
hitCollider
the collider that was hit
only used when multicasting with colliders