Skip to content

Interface: RaycastHit2D ​

Properties ​

PropertyTypeDescription
colliderCollider2DComponent-
distancenumberPx from the origin, and the 0..1 share of the cast length.
entityEntity-
fractionnumber-
normalXnumber-
normalYnumber-
rigidbodyRigidbody2DComponent | null-
xnumber-
ynumber-

© 2026 PlayAdGentic