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.
Input
Name | Data Type | Description |
---|---|---|
Hit Info 2D | Hit Info 2D | The information received from the Ray Cast node. |
Output
Name | Data Type | Description |
---|---|---|
Hit Object | Scene Object | The object involved in the interaction |
Hit Collider | Component | The collider component of the hit object |
Hit Point | Vec2 | The 2D point where the interaction occurred, such as the intersection point of the ray cast or the contact point of the collision |
Hit Normal | Vec2 | The surface normal vector at the hit point |
Hit Distance | Number | The distance from the starting point of the interaction (the ray origin) to the hit point |
Rigid Body | Component | The 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 |