-
-
Notifications
You must be signed in to change notification settings - Fork 52
Description
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.