playMaker

Author Topic: Ray Cast 2d problems in unity 5 with playmaker 1.8.3.  (Read 2702 times)

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Ray Cast 2d problems in unity 5 with playmaker 1.8.3.
« 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.

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: Ray Cast 2d problems in unity 5 with playmaker 1.8.3.
« Reply #1 on: October 06, 2017, 04:09:14 PM »
Anyone??

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Ray Cast 2d problems in unity 5 with playmaker 1.8.3.
« Reply #2 on: October 07, 2017, 06:35:54 AM »
Hi,
Can you show your setup.


djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Ray Cast 2d problems in unity 5 with playmaker 1.8.3.
« Reply #4 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 to show images, its easier :)