Skip to content

de-coupling from three.js #68

@trusktr

Description

@trusktr

Hello! The abstraction over multiple physics engine is wonderful. However, it is coupled to Three.js rendering.

It would be great if instead of that coupling, it could be only a physics engine abstraction and nothing more, so that it could be applied independently to any other renderer (Babylon, Three.js, PlayCanvas, Lume, react-three-fiber, a-frame, regl, Pixi3D, even custom renderers).

You could, optionally, provide separate higher-level renderers (f.e. ThreejsRenderer, PlaycanvasRenderer, etc) that can accept the Phy instance and render it based on the physics world. That would be a lot nicer because then anyone could adopt Phy's simplistic and standardized physics API and easily swap which underlying physics engine is used, without being strictly coupled to Three.js.

I would really love to use this physics abstraction, but I don't want to be strictly coupled to Three.js, depending on what I'm working on.

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