playMaker

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

Mupp

  • Full Member
  • ***
  • Posts: 154
    • View Profile
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: 6320
    • View Profile
    • 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.
Ecosystem might not work at the moment
here are direct Github Links to the custom actions :
https://github.com/PlayMakerEcosystem
https://github.com/jeanfabre


Join the PlayMaker Discord Channel!