SergiusIW / collider-rs

Rust library for continuous 2-D collision detection.
Apache License 2.0
92 stars 9 forks source link

Snapshots #4

Open janhohenheim opened 7 years ago

janhohenheim commented 7 years ago

In light of lag compensation, how good are collider's capabilities to reset it's simulation to a given snapshot, i.e. a certain timestamp in the past or a list of state from that time?

SergiusIW commented 7 years ago

There are no provisions in Collider for viewing past state. If you really want to keep details from a specific past timestamp, perhaps you could clone the Collider instance at that time?

janhohenheim commented 7 years ago

Thanks for the answer :)

So, is the following scenario possible?

Additional questions: Is the Collider instance safe to be

between threads?

Because I want to use it together with specs