Skip to content

Add cannon bodies to CollideEvent #380

@ffdead

Description

@ffdead

I'm looking for a way to reset the position of an InstancedMesh when it collides with a ground plane. So when it collides, I would want to update the position and velocity of that instance's physics body.

But it seems there is no way to get the current instance index from the onCollide callback. Similar question here: #106

Would it be possible to directly expose the physics bodies in addition to the Object3D in the CollideEvent?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions