playMaker

Author Topic: A good way to get results from one of multiple raycasts?  (Read 604 times)

Mupp

  • Full Member
  • ***
  • Posts: 167
A good way to get results from one of multiple raycasts?
« on: September 14, 2021, 07:57:43 PM »
I'm looking for a way to get all results from one of multiple raycasts. If a condition is met, like shortest hit distance for example, I want to get the rest of the results from that specific raycast.
Is there a good way to do this?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: A good way to get results from one of multiple raycasts?
« Reply #1 on: September 15, 2021, 08:26:40 AM »
Hi.
Probably store data from each raycast into arrays then check distance array to get shortest.
then use that index to get the other data.