Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: coffeeANDsoda on October 04, 2017, 08:59:48 PM

Title: Ray Cast 2d problems in unity 5 with playmaker 1.8.3.
Post by: coffeeANDsoda on October 04, 2017, 08:59:48 PM

Base upon this tutorial I thought I'd not bother adding a 2d sprite to trigger a jumping event. Bare in mind, ground objects do have a tag in order for the Game Object Compare Tag action attempt making a comparison.

I don't know why this isn't working and I am using playmaker 1.8.3.
Title: Re: Ray Cast 2d problems in unity 5 with playmaker 1.8.3.
Post by: coffeeANDsoda on October 06, 2017, 04:09:14 PM
Anyone??
Title: Re: Ray Cast 2d problems in unity 5 with playmaker 1.8.3.
Post by: djaydino on October 07, 2017, 06:35:54 AM
Hi,
Can you show your setup.
Title: Re: Ray Cast 2d problems in unity 5 with playmaker 1.8.3.
Post by: coffeeANDsoda on October 07, 2017, 03:11:07 PM
Hi,
Can you show your setup.

Does this work for you by any chance?

https://www.dropbox.com/s/6xm0vxa4220uz2m/cloud03%20raycast%202d%20prob.png?dl=0

https://www.dropbox.com/s/xc87e3q3xdlwoy5/cloud03%20raycast%202d%20prob%202.png?dl=0

https://www.dropbox.com/s/1msv8hdxn4rmjnq/cloud03%20raycast%202d%20prob%203.png?dl=0
Title: Re: Ray Cast 2d problems in unity 5 with playmaker 1.8.3.
Post by: djaydino on October 07, 2017, 10:53:55 PM
Hi,
I think the raycast is looking for the "Default" layer so if your layer is "Ground" it won't register.

so you need to add all the layers you want to register (Ground, items, enemies, etc...)
or set no layers so it register everything.


Btw you can use Imgur (https://imgur.com/) to show images, its easier :)