playMaker

Author Topic: Raycast clear gameobject  (Read 442 times)

shermanftw

  • Playmaker Newbie
  • *
  • Posts: 5
    • View Profile
Raycast clear gameobject
« on: December 28, 2015, 10:22:05 AM »
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: 125
    • View Profile
Re: Raycast clear gameobject
« Reply #1 on: April 13, 2016, 01:27:19 PM »
Try Raycast2. You can find it at the EcoSystem.  :)

Zeldag

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