Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Jay on November 13, 2022, 01:24:05 PM

Title: Trigger event not responding to colliders, only works with character controller
Post by: Jay on November 13, 2022, 01:24:05 PM
I am having an issue with none of my colliders working with on trigger enter or exit at all.

They will only function with a character controller component added. I created a fresh project to test out various colliders and the issue still persists. No other colliders will trigger the event.

The test scene is attached, any insight, tips or advice welcome as I'm stumped.

Unity scene package here:
https://drive.google.com/file/d/1lVYzcJVsgJlYAJkbqke5fvkXNSTMukV5/view?usp=share_link (https://drive.google.com/file/d/1lVYzcJVsgJlYAJkbqke5fvkXNSTMukV5/view?usp=share_link)
 

Title: Re: Trigger event not responding to colliders, only works with character controller
Post by: djaydino on November 14, 2022, 12:40:18 AM
Hi.
have a rigidbody(2d) component should work
Title: Re: Trigger event not responding to colliders, only works with character controller
Post by: Jay on November 14, 2022, 10:36:24 AM
I added a Rigidbody 2D and the player capsule went invisible.

Is there anything else I can try? I'm not using collider tags, which I know is usually the issue.
Title: Re: Trigger event not responding to colliders, only works with character controller
Post by: Jay on November 14, 2022, 10:41:43 AM
The rigidbody 2d was making the capsule fall through the floor. I set gravity scale to 0 and it stayed put. However it's still not triggering the collision event.
Title: Re: Trigger event not responding to colliders, only works with character controller
Post by: Jay on November 14, 2022, 12:37:42 PM
The colliders in my game are currently working correctly. I started a new scene and the collider issue appeared.

I then started a new project to test out what was going wrong. The problem persists in new scene in a fresh project.

Trigger events will work with a character controller attached to any object. They don't trigger with any other collider.

Collision events don't work even with a character controller added.

Is this a bug or am I missing something obvious?
Title: Re: Trigger event not responding to colliders, only works with character controller
Post by: Jay on November 15, 2022, 11:41:37 AM
I just needed to add a regular Ridgidbody and a Collider. At least now I'll never forget again. Thanks for your help.