Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Gav (HeyBud) on January 25, 2017, 09:55:11 PM

Title: Get Collision 2d Info not returning anything. [SOLVED]
Post by: Gav (HeyBud) on January 25, 2017, 09:55:11 PM
'Get Collision 2d Info' (GC2DI) is not returning anything. I have a state using collision 2d  event where I can get the object collided and it returns that variable. But then it moves into GC2DI and i can't get anything. I tried starting with GC2DI but also can't get a result. All boxes result null or 0

I have it on an object with rigid body 2d and box collider 2d.

Thanks, I can't find any other info on this.
Title: Re: Get Collision 2d Info not returning anything.
Post by: Ofonna on January 26, 2017, 12:32:14 AM
i have the same problem with making 2d games using playmaker, i'm forced to  believe it's actually a problem from them, i can't also register 2d trigger events
Title: Re: Get Collision 2d Info not returning anything.
Post by: jeanfabre on January 26, 2017, 01:25:44 AM
Hi,

 I checked and it all works fine, both for colliders and triggers.

 (http://i.imgur.com/A3U2Vru.png)

(http://i.imgur.com/wrtKLw1.png)

- what version of PlayMaker
- what version of Unity

I suspect you are getting mixed up between colliders and triggers. the only difference is a check box, but it uses totally different System Events and actions.

 so if you have your Collider set to Trigger, then you need to use GetTrigger2dInfo together with TriggerEnter2D.


Bye,

 Jean
Title: Re: Get Collision 2d Info not returning anything.
Post by: Gav (HeyBud) on January 26, 2017, 02:11:56 AM
Oh... I wasn't using the global event, Collision Enter 2D. No I just checked it still doesn't get called with that. It flows from start into state one and doesn't trigger the collision. Am I missing a step to get collision enter 2d to fire?
I'm wanting collision not trigger. Trying to get a collision point.
Playmaker 1.7.8.4
Unity 5.4.1
Thanks

Title: Re: Get Collision 2d Info not returning anything.
Post by: jeanfabre on January 27, 2017, 01:47:08 AM
Hi,

 You can't use 1.7x with Unity 5.3+, so you need to first update PlayMaker, BACKUP first :)

 Bye,

 Jean
Title: Re: Get Collision 2d Info not returning anything. [SOLVED]
Post by: Gav (HeyBud) on January 27, 2017, 06:39:50 PM
I guess that's the first thing i'll do when I have unexplained problems next time.  :-[
Thanks for your help!