Let's encapsulate Box2D simulation in a dedicated service first:
jni/PhysicsObject.hppand insert Box2D main include file. Class
PhysicsObjectexposes a location and a collision flag publicly. It holds various Box2D properties defining a physical entity:
is set up with
and refreshed with
after each simulation step. Method
will help us create a joint for the ...