HasEnteredCollision2D never firing

Hello there,
trying to build a quick PoC using Behavior Designer Pro and I'm having issue with collision detection in 2D.

I added a debug script to my object to see if collisions were actually triggered and they are, however the node in Behavior Designer Pro never fires.

Here's the tree I'm currently using (copied from some other thread in the forum):

1783417267529.png

Anything I'm doing wrong?
 
@Justin how would you explain that this simple MonoBehaviour works instead?

C#:
namespace DefaultNamespace
{
    using System;
    using UnityEngine;

    public class Collide : MonoBehaviour
    {
        private void OnCollisionEnter2D(Collision2D other)
        {
            throw new NotImplementedException();
        }
    }
}

Of course this is attached to the same GO that has the tree.
Any hint on how to debug this?
 
Ahh, the HasEnteredCollision2D task subscribes to the 3D collision callback, not 2D. You can change this with the property from:

Code:
        protected override bool ReceiveCollisionEnterCallback => true;
to:
Code:
        protected override bool ReceiveCollisionEnter2DCallback => true;
It looks like that's the only task that needs to be updated, the rest subscribe to the correct callback.
 
Ah, that's correct. I really do recommend upgrading, there have been some foundation level changes in version 3 that are worth getting.
 
Back
Top