Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Mupp on September 14, 2021, 07:57:43 PM

Title: A good way to get results from one of multiple raycasts?
Post by: Mupp 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?
Title: Re: A good way to get results from one of multiple raycasts?
Post by: djaydino 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.