Raycast hit oncollisionenter

Is it possible to add raycast hit inside the oncollisionenter function ? If its how ?

yes, in the same way you’d do a raycast anywhere else…

1 Like