playMaker

Author Topic: [SOLVED] Can't make trigger/collision working  (Read 6522 times)

hide

  • Playmaker Newbie
  • *
  • Posts: 6
[SOLVED] Can't make trigger/collision working
« on: March 08, 2014, 10:49:35 AM »
Hello there  :)
It's been like 2 years since i've stopped using unity+playmaker because of this problem, I hope you'll be able to help me.

I made a very simple shoot-em-up with a player that can shoot missiles, some enemies and enemies that drop bonuses. But I can't make collisions nor triggers working between the player and the bonuses. I tried everything but it never worked... It's never going in the secondary state.
Here's two options I tried, maybe someone can tell what's wrong :
- Trigger event in the player object :


- (currently disabled FSM) collision event in the bonus object (also tried with a trigger but disabled the event in case it had interfered with the first option):

(remove the l before .png for original size image)

Note i'm using the Playmaker student edition coming with the skillshare tutorial.
Thanks.
« Last Edit: March 23, 2014, 07:03:40 AM by hide »

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Re: Can't make trigger/collision working
« Reply #1 on: March 08, 2014, 02:03:35 PM »
did you tried to use a child object for your player trigger?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Can't make trigger/collision working
« Reply #2 on: March 11, 2014, 07:41:56 AM »
Hi,
 
can you make the screenshot of a higher resolution, I can't read any thing unfortunatly.

bye,

 Jean

hide

  • Playmaker Newbie
  • *
  • Posts: 6
Re: Can't make trigger/collision working
« Reply #3 on: March 12, 2014, 09:36:22 AM »
Sorry, the links are correct but it's still showing small screens :/
Here are the big screens :
screen1
screen2
« Last Edit: March 12, 2014, 10:13:02 AM by hide »

Bqlqzs

  • Junior Playmaker
  • **
  • Posts: 52
Re: Can't make trigger/collision working
« Reply #4 on: March 13, 2014, 12:30:55 PM »
First, the second image is a correct usage for states, because you cant use FINISHED translate for trigger/collider event, cause it will be auto finish and jump for the next state and I think it will be loop fail..!

The second image is I think good setup, but:
the triggers and colliders, I think not work, if you manually move the object with editor arrows!, only work if the object move with translate or force, ect..

the second:
if you try this setup and dont move the object, you picked "ENTER" collision/trigger, but your object is in rigger/collider, so dont will be work, just if you selected STAY in collider/trigger...
« Last Edit: March 13, 2014, 12:35:17 PM by Bqlqzs »

hide

  • Playmaker Newbie
  • *
  • Posts: 6
Re: Can't make trigger/collision working
« Reply #5 on: March 13, 2014, 01:35:33 PM »
I assume you're referring to the first screen on your first paragraph, so i set the collision like this :


On the second image it was only a paused game using translate with keys for the player movement and no movement for the yellow ball.

Lastly I tried with a STAY collision, still no sucess.

It may have to do with the unity setup because I tried a lot of options and never got working collision with these two object.
« Last Edit: March 13, 2014, 01:40:00 PM by hide »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Can't make trigger/collision working
« Reply #6 on: March 18, 2014, 10:05:27 AM »
Hi,

 -- do they feature a rigidbody component?
 -- is the rigidbody component set to isKinematic?
-- does it really have the tag you expect ( bonus)
-- is it actually set to is trigger or not? a collision is NOT a trigger, and it's only down to a check box, so watch out here as well.

bye,

 Jean

hide

  • Playmaker Newbie
  • *
  • Posts: 6
Re: Can't make trigger/collision working
« Reply #7 on: March 23, 2014, 07:02:47 AM »
I've remade it from scratch with a rigidbody on each set to isKinematic with the collider set to trigger and it work.  :)

Thanks everybody.