playMaker

Author Topic: FSM not triggering transition after collision (Unity 2022 + PlayMaker)  (Read 50 times)

PolyTrackk

  • Playmaker Newbie
  • *
  • Posts: 1
    • PolyTrack
Hi everyone,

I’m running into an issue with PlayMaker and I’m not sure what I’m missing.

I have a simple FSM set up where an object should change state when it collides with another GameObject tagged “Enemy”. I’m using the On Trigger Enter 2D event to detect the collision.

The problem is that the transition doesn’t always fire. Sometimes it works, but other times nothing happens even though the collision clearly occurs in the scene.

What I’ve already checked:

The collider is set to “Is Trigger”
Both objects have Rigidbody2D components
Tags are correctly assigned
FSM is active when the collision happens

I’m using Unity 2022.3 and the latest version of PlayMaker.

Has anyone run into this before or know what might cause inconsistent trigger detection in PlayMaker FSMs?

Any help would be appreciated.

Thanks!

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4400
  • Official Playmaker Support
    • LinkedIn
How are you moving the GameObjects, using Transform actions or Rigidbody2D actions? Moving the Transform directly can cause missed collisions.

Another thing to check is if either rigidbody is sleeping. I believe the Rigidbody2D component shows if it is sleeping.