Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: zafio on February 25, 2016, 04:37:52 PM

Title: Raycast issue
Post by: zafio on February 25, 2016, 04:37:52 PM
Hi, I'm following this tutorial:
But Raycast doesn't detect the target, watched the video again and again, all seems fine, and I'm totally clueless why doesn't it work...
Is an extra step needed on newer versions?...

This is Unity 5.2.4 and Playmaker 1.7.8.4

Thanks.

Title: Re: Raycast issue
Post by: Chizzler on February 25, 2016, 05:21:13 PM
Is your raycast being fired in the correct direction (Use the debug option in the raycast action). If not, it's possible you've not set your "Look at" action correctly in an earlier state. It needs to be Every frame, and have the correct game object set (Target).

If it's being fired in the right direction, but isn't detecting the object, they it could be that you've not set the raycast action to store the hit object, or you've filtered by a layer that your target isn't on, or your target doesn't have a collider attached.
Title: Re: Raycast issue
Post by: zafio on February 25, 2016, 06:19:21 PM
Thanks for your answer! Checked all that several times, all seemed fine. So decided to load a previous backup, started those fsm from scratch and it works now...