Skip to content

[Suggestion] - onBodyEnter Method #836

Closed

Description

I see we have a onCollision method here.

It would be nice I think to also have a onBodyEnter too. I know this isn't a huge suggestion and might not be needed, but helps a lot with creating doors and whatnot!

Activity

  1. parasyte commented on Nov 17, 2016

    @parasyte
    Collaborator

    FWIW, the shapes example uses the low-level collision checks to determine whether the pointer is intersecting with body shapes:

    if (shape.containsPoint(x, y)) {

    It's a little more work than a specialized event, but it's something you can easily use today.

  2. locked and limited conversation to collaborators on Sep 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions