Box2D – How can I run code mid-physics step?
I’m writing a LibGDX game where I want two objects to have the exact same movement, but still interact with the physics environment normally. The best way to do this that I can think of is to average the change in their velocities after Box2D does a velocity iteration, but before it solves for position (I’ve tried a few things, this seems like the most robust).