Skip to content

The triggerleave event doesn't work as expected after reloading scene #5797

Description

@albertvanveen

The triggerleave event doesn't work anymore after reloading the scene, when the trigger entity is inside a rigidbody entity.

A workaround is to enable the trigger entity (or collision component) a frame later, but I don't think this is possible in all situations.

I think this bug can easily break projects that use a lot of trigger entities.

Here is a project with the issue:
https://playcanvas.com/editor/scene/1893502

Here is a project with a workaround:
https://playcanvas.com/editor/scene/1894025

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions