Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Kfinn on February 15, 2018, 07:12:58 PM

Title: Raycast return list or array?[SOLVED]
Post by: Kfinn on February 15, 2018, 07:12:58 PM
Hi everyone,

I have a 3D scene with a bunch of overlapping structures.  I've set up a dbl tap that will raycast and determine which outermost structure was hit.  However, I'd like to have the raycast return a list or array of ALL structures hit along the ray (within a user-defined depth) so I can see if certain structures are buried in the mix at that particular point.

I've gone through all the RayCast actions I can find and don't see anything quite like this.  Any ideas?

Thanks in advance as always!
Title: Re: Raycast return list or array?
Post by: Doh on February 16, 2018, 11:58:10 AM
Hey, "Raycast All" will give you a list of all the objects hit, use "store hit objects" in that action. You define the depth through a "distance" float too.
Title: Re: Raycast return list or array?
Post by: Kfinn on February 18, 2018, 03:55:58 PM
Thanks for the input.  Will give it a shot.

Much appreciated!