playMaker

Author Topic: raycast through multiple targets  (Read 3108 times)

Khoa1994

  • Playmaker Newbie
  • *
  • Posts: 33
raycast through multiple targets
« on: July 19, 2014, 11:16:45 AM »
Is there a way to shoot a raycast through multiple objects and store all the hit objects in an array? I want to make a gun that can shoot through multiple enemies.

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: raycast through multiple targets
« Reply #1 on: July 19, 2014, 08:14:39 PM »
Use ray cast all action and store them on array list.

Khoa1994

  • Playmaker Newbie
  • *
  • Posts: 33
Re: raycast through multiple targets
« Reply #2 on: July 20, 2014, 02:17:08 AM »
Thanks. I found the link to the "GetNextRaycastAllHit" action: http://hutonggames.com/playmakerforum/index.php?topic=1255.0

Khoa1994

  • Playmaker Newbie
  • *
  • Posts: 33
Re: raycast through multiple targets
« Reply #3 on: July 20, 2014, 03:00:33 PM »
Is there a "GetNextRaycastAllHitFromScreen" ? I want to raycast from a touch screen and really need this action.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: raycast through multiple targets
« Reply #4 on: July 29, 2014, 08:05:58 AM »