playMaker

Author Topic: Raycast clear gameobject  (Read 1875 times)

shermanftw

  • Playmaker Newbie
  • *
  • Posts: 5
Raycast clear gameobject
« on: December 28, 2015, 12:22:05 PM »
Hello

Been running into a problem for the past day an a half in which I cant figure out how to clear my raycast hit object when I am not looking at it anymore. Is there a way to clear that object once the ray leaves the object? Tried distance checking for a while to no avail.

LogLady

  • Full Member
  • ***
  • Posts: 150
Re: Raycast clear gameobject
« Reply #1 on: April 13, 2016, 04:27:19 PM »
Try Raycast2. You can find it at the EcoSystem.  :)

Zeldag

  • Full Member
  • ***
  • Posts: 198
Re: Raycast clear gameobject
« Reply #2 on: April 15, 2016, 07:33:58 AM »
Or couldnt you just set game object as none when the raycast doesnt return a hit?