RayCastAll to Four directions
Discussion in 'Rust Development' started by azalea`, Mar 3, 2016.
-
Would a sphere work? Centered on the box?
-
Sphere includes also under and upper colliders
-
Just do four Raycasts in the different directions.
-
I was looking for a optimized way. Maybe need make a sphere cast then check hit positions on UP and DOWN from start position.
-
If do four raycasts, you should be able to do that with maybe maximal 10 more lines than when having this in one function.
Why waste time searching for a "optimized way" when you could have simply done the normal way by now?
You could try a BoxCast or OverlapBox.
Though that would be like this:
Last edited by a moderator: Mar 4, 2016
