playMaker

Author Topic: Raycast return list or array?[SOLVED]  (Read 694 times)

Kfinn

  • Playmaker Newbie
  • *
  • Posts: 8
    • View Profile
Raycast return list or array?[SOLVED]
« on: February 15, 2018, 05: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!
« Last Edit: February 19, 2018, 12:09:28 AM by jeanfabre »

Doh

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Re: Raycast return list or array?
« Reply #1 on: February 16, 2018, 09: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.

Kfinn

  • Playmaker Newbie
  • *
  • Posts: 8
    • View Profile
Re: Raycast return list or array?
« Reply #2 on: February 18, 2018, 01:55:58 PM »
Thanks for the input.  Will give it a shot.

Much appreciated!