physics simulation Back-In-Time

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
Posts: 18
Joined: Sun Oct 04, 2015 4:41 pm

physics simulation Back-In-Time

Post by yanbo2u » Thu Jan 05, 2017 4:57 am

It will be fxxxing awesome if the physics engine can simulate the world both forward and backward in time. when you flip the switch back and forth, every movement in the world behaves as if it is in a video tape. e.g. an apple falls from a tree and hits the man in the head, or the apple lifts off from the poor man's head and ascends to the tree.

It is possible?

Site Admin
Posts: 4588
Joined: Tue Jul 04, 2006 4:45 am

Re: physics simulation Back-In-Time

Post by Norbo » Thu Jan 05, 2017 5:14 am

Unfortunately, while the laws of classical mechanics are time reversible, BEPUphysics isn't. Supporting that kind of thing without any tricks would require a very different kind of engine.

The usual solution to this for games is to record states for playback. For example, if the player is able to rewind time up to 5 seconds into the past, store a ring buffer of frame states and let them scrub through it. Or, for full game replays, just store the whole history (probably with various forms of trickiness and compression).

Post Reply

Who is online

Users browsing this forum: Baidu [Bot] and 2 guests