Lets say you have a boundary of a region3
a square region3 with the size of 100,100,100 if a player had shot the raycast
is there any way I can calculate the distance so that it stops inside of the region3 instead of going outside?
The reason why i want to do this is because I dont want to use parts to detect collision
actually I do not want to detect any collision at all
I want an raycast to stop if it is outside the region3 or before it goes outside
kind of like using an part to stop an raycast except for this i need to calcualte the magnitude of the raycast before hand so that it perfectly stops right before it intersects or passes the reigon3?