Hi Erin and fellow phys2D people,
My name's Keith and I'm from over at the javagaming.org forums. I've used Phys2D, the port by Kevin Glass, and I was impressed by it. So thanks to Erin for making the code and Kev for porting it to java.
I just wanted to raise an issue: I wanted to use the engine for a networked game and a feature that I needed was to be able to give negative time updates to the engine so that physics would be reversed. It does work, but it is not perfectly symmetrical. I looked thru the code and I believe that it is because the order of how the collision detection is done is in the same order whether the time update is positive or negative.
By the way, I need to go backwards in time when a key press from a lagging client is recieved by the server, and the server's game world needs to be reversed to when the key press happened, and then applied. But that 1 second of movement before the key press was recieved on the server needs to be re-wound.
Are symmetrical positive and negative time updates possible? 🙂
Thanks,
Keith
PS: these things are cool 🤓 🤓
My name's Keith and I'm from over at the javagaming.org forums. I've used Phys2D, the port by Kevin Glass, and I was impressed by it. So thanks to Erin for making the code and Kev for porting it to java.
I just wanted to raise an issue: I wanted to use the engine for a networked game and a feature that I needed was to be able to give negative time updates to the engine so that physics would be reversed. It does work, but it is not perfectly symmetrical. I looked thru the code and I believe that it is because the order of how the collision detection is done is in the same order whether the time update is positive or negative.
By the way, I need to go backwards in time when a key press from a lagging client is recieved by the server, and the server's game world needs to be reversed to when the key press happened, and then applied. But that 1 second of movement before the key press was recieved on the server needs to be re-wound.
Are symmetrical positive and negative time updates possible? 🙂
Thanks,
Keith
PS: these things are cool 🤓 🤓