playMaker

Author Topic: Get Collision 2d Info not returning anything. [SOLVED]  (Read 1525 times)

Gav (HeyBud)

  • Full Member
  • ***
  • Posts: 117
    • View Profile
    • Tumblr
Get Collision 2d Info not returning anything. [SOLVED]
« on: January 25, 2017, 07: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.
« Last Edit: January 27, 2017, 07:08:38 PM by Sarcophagav »

Ofonna

  • Full Member
  • ***
  • Posts: 230
    • View Profile
Re: Get Collision 2d Info not returning anything.
« Reply #1 on: January 25, 2017, 10:32:14 PM »
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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14593
  • Official Playmaker Support
    • View Profile
Re: Get Collision 2d Info not returning anything.
« Reply #2 on: January 25, 2017, 11:25:44 PM »
Hi,

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

 



- 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

Gav (HeyBud)

  • Full Member
  • ***
  • Posts: 117
    • View Profile
    • Tumblr
Re: Get Collision 2d Info not returning anything.
« Reply #3 on: January 26, 2017, 12: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

« Last Edit: January 26, 2017, 03:46:46 PM by Sarcophagav »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14593
  • Official Playmaker Support
    • View Profile
Re: Get Collision 2d Info not returning anything.
« Reply #4 on: January 26, 2017, 11:47:08 PM »
Hi,

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

 Bye,

 Jean

Gav (HeyBud)

  • Full Member
  • ***
  • Posts: 117
    • View Profile
    • Tumblr
Re: Get Collision 2d Info not returning anything. [SOLVED]
« Reply #5 on: January 27, 2017, 04:39:50 PM »
I guess that's the first thing i'll do when I have unexplained problems next time.  :-[
Thanks for your help!