box2d.ts icon indicating copy to clipboard operation
box2d.ts copied to clipboard

Evaluate possibilities for further *Def simplifications

Open Lusito opened this issue 5 years ago • 0 comments

In flyovers port, all *Def ports had one interface and one class defined. In some cases, I was able to make this just an interface, making creation of objects even simpler by just passing an object rather than creating it and adjust its settings. b2FixtureDef is one of those.

There are however other places, where this has not been done yet. Partially, because in some of these cases, inheritance is part of the equation.

Evaluate what can be done to further improve this.

An added benefit might be that we could allow third-party joints if we only required an interface for the JointDef.

Lusito avatar Nov 09 '20 18:11 Lusito