I have to give this a huge
+1
edit: wanted to include some more feedback than just an upvote for this issue. From what I can tell after a fair amount of testing, for doing lots of continuous collision detection, the physics library is the way to do. Because of that, I’m using physics for the sole purpose of collision detection (I just set gravity to 0,0). I’m also using setLinearVelocity and other box2d functions for movement, instead of using move(), transitions, adjusting x/y manually, etc.
However this also means it’s much harder (if possible at all) to implement my own “frame skipping” by using a delta or something similar. Without frame skipping, the options are to either optimize (sometimes that means stripping content), or change the game design to account for it. Neither of those are the ideal solution though.
If it’s not feasible to open up more of the box2d api in the near future, it would be great if there were at least an option as simple as
[lua]physics.isFrameSkippingEnabled = true[/lua] [import]uid: 49447 topic_id: 15627 reply_id: 60628[/import]