Skip to content

Contact callback #101

@Bikeman868

Description

@Bikeman868

Hi, is there any way to get a callback when two objects collide? or better still attach a callback to a specific rigid body and get a callback when it collides with something?

I have seen this demo but this technique requires me to check every rigid body against every other rigid body to know if anything is colliding.

Imagine that the player in my game fires a bullet and I want to know when/if it hits anything. Testing each bullet against every object in the scene on each step is obviously not feasible.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions