playMaker

Author Topic: raycast 2d no hitting event  (Read 931 times)

IIKII

  • Full Member
  • ***
  • Posts: 137
  • Lonely developer
    • Patreon
raycast 2d no hitting event
« on: February 25, 2020, 04:04:19 AM »
Hi, any possible ways to add a no hit event to raycast 2d?

The raycast 1 and 2 doesn't seem to work on 2d colliders.
Support me on Patreon for free adventure games and development insights - https://www.patreon.com/koexstudio

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: raycast 2d no hitting event
« Reply #1 on: February 25, 2020, 11:46:44 AM »
Hi,

 a no hit event would simply take the form of a send event action right after the action: If the action doesn't send a hit event to exit the current state, then the send event will do, which means no hit was detected.

 Is that enough as a trick for your case?

Bye,

 Jean