- Home /
This question was
closed Jul 09, 2016 at 10:49 AM by
Griffo for the following reason:
Problem solved ..
Question by
Griffo · Jul 08, 2016 at 03:28 PM ·
raycastcollidercollision detectionraycastingraycasthit
Raycast exit point of collider
Hi,
I'd like to find the exit point of a raycast when hitting a collider, in the picture the raycast (the red line coming from left to right) you can see entering the collider on the top left and exiting the bottom right.
What I'd like is the point of exit, is it possible as I cannot find the answer here or on google ..
Thanks.
screen-shot-2016-07-08-at-162124.jpg
(284.6 kB)
Comment
You could shoot a ray from the opposite direction and a certain distance away along the original ray. The hitpoint of the specified gameObject would be your exit point.