Skip to content
This repository was archived by the owner on Feb 10, 2023. It is now read-only.
This repository was archived by the owner on Feb 10, 2023. It is now read-only.

Can't access useBody internal UUID when adding constraints against instance mesh bodies #146

@IRobot1

Description

@IRobot1

Physics bodies can be created against instance meshes. The index can be passed to the body function

  sphereProps = this.physicBody.useParticle((index: number) => ({

Internally, this creates a virtual UUID that's passed to cannon.

However, constraints are missing a way to refer to instance bodies using the virtual UUID. Currently, only non instance bodies are supported.

My guess is a check if objects are InstanceMesh would need to be added here to lookup the internal UUID.

Am I on the right track?

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