Skip to main content
Version: 4.3.0

Ray Hit Info 2D

Provides information about a ray cast or collision event, including the location and properties of any objects that were hit along the way.


NameData TypeDescription
Hit Info 2DHit Info 2DThe information received from the Ray Cast node.


NameData TypeDescription
Hit ObjectScene ObjectThe object involved in the interaction
Hit ColliderComponentThe collider component of the hit object
Hit PointVec2The 2D point where the interaction occurred, such as the intersection point of the ray cast or the contact point of the collision
Hit NormalVec2The surface normal vector at the hit point
Hit DistanceNumberThe distance from the starting point of the interaction (the ray origin) to the hit point
Rigid BodyComponentThe Rigid Body component attached to the object that was hit by the ray cast. This can be used to access the properties of the rigid body, or to apply forces or impulses to it