Box2D Joints in entity components system
- by Johnmph
I search a way to have Box2D joints in an entity component system, here is what i found :
1) Having the joints in Box2D/Body component as parameters, we have a joint array with an ID by joint and having in the other body component the same joint ID, like in this example :
Entity1
- Box2D/Body component { Body => (body parameters), Joints =>…