playMaker

Author Topic: Unity 5.3 + PlayMaker 1.8 and triggers?[SOLVED]  (Read 3337 times)

Venomlemon

  • Playmaker Newbie
  • *
  • Posts: 4
Unity 5.3 + PlayMaker 1.8 and triggers?[SOLVED]
« on: February 01, 2016, 03:06:18 PM »
Unity 5.3.1f1
PlayMaker 1.8

I am currently going through the tutorials found from:
And the part where you are supposed to test the triggers, I can't get FSM to react to to OnTriggerEnter. The script detects this happening:

void OnTriggerEnter () {  Debug.Log("Yep, just entered");  }

But when my Listener gets Trigger Event (Trigger: On Trigger Enter) and sends an event (Entered) it does not move to "Enter" state where it has been specified by an arrow. Listener state is active but when collide happens, nothing happens.
« Last Edit: February 02, 2016, 03:47:26 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Unity 5.3 + PlayMaker 1.8 and triggers?
« Reply #1 on: February 02, 2016, 12:41:34 AM »
Hi,

 All is fine, I think you just forgot to add a rigidbody to one of the two gameobject interacting together.

 What are you using as a gameobject to move inside your trigger? if you use a dummy cube or something, it has to have:

-- a Collider ( set as a trigger or not)
-- a Rigidbody

and your trigger GameObject must have at least a Collider set to is trigger

I am not too sure how you have setup your script to work in the exact same situation that the one above, but double check indeed.


Bye,

 Jean

Venomlemon

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Unity 5.3 + PlayMaker 1.8 and triggers?
« Reply #2 on: February 02, 2016, 02:56:19 AM »
I am afraid this is not the solution, there's a rigidbody and there is a colliders in place with one of them being a trigger.

Anyone particularly keen on solving this: I've uploaded the project file here:
[EDIT FROM MODERATOR: do not share PlayMaker, it's under licensing]
« Last Edit: February 02, 2016, 03:32:52 AM by jeanfabre »

Venomlemon

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Unity 5.3 + PlayMaker 1.8 and triggers?
« Reply #3 on: February 02, 2016, 03:13:21 AM »
This might be completely unrelated, but I did notice a difference between the tutorial and current PlayMaker 1.8 version:



Spaces in string OnTriggerEnter vs On Trigger Enter

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Unity 5.3 + PlayMaker 1.8 and triggers?
« Reply #4 on: February 02, 2016, 03:45:08 AM »
Hi,

 ok, I have download your project. Please do not share PlayMaker, PlayMaker is a licensed product. Send a private message or package the project without PlayMaker folder and Plugins folder.

The problem is the following: you have a tag in one of the cube "Player", and so the Trigger Event action is filtering by tag.

to solve this, set the TriggerEvent CollideTag to "none" like so:



 "Untagged" is misleading, but it is a tag nonetheless.

Bye,

 Jean
« Last Edit: February 02, 2016, 03:47:17 AM by jeanfabre »

Venomlemon

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Unity 5.3 + PlayMaker 1.8 and triggers?[SOLVED]
« Reply #5 on: February 02, 2016, 04:19:01 AM »
Oh oops! Sorry about that (had no idea how licensing/sharing works in this case, I immediately removed that .zip!).

Thanks for helping out, feeling embarrassed now that we found out what the problem was. Such a beginner level mistake ^^

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Unity 5.3 + PlayMaker 1.8 and triggers?[SOLVED]
« Reply #6 on: February 02, 2016, 07:36:52 AM »
Hi,

 Not a problem :) we all start somewhere.

 Bye,

 Jean