My engine supports scene handling, cameras, and has a renderer. Also, it has a class called
Drawable, which has the position, the shape and the picture of an object. The picture property has width, height, rotation and a draw method. All game objects are supposed to inherit from this
Drawable class, and are added to the scene, along with a map (a collection of Tiles, that also inherit from
Drawable), lights, and so on and so forth.
The shape property of a
Drawable is a
Polygon, a collection of user defined vertices around the position of a
Drawable. This is a relative coordinate system, so
[0, 0] is the position of the
With this setup, will the users of my engine (which will probably only be me) still be able to integrate physics engines such as Box2DJS into their games?