jelster / space-truckers

A game of getting stuff from Point A to Point B... IN SPAAAACCE!

Home Page:https://space-truckers.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pause does not halt cargo unit physics

jelster opened this issue · comments

When the togglePause function is called, it transitions the Screen to the Paused state. It also calls cargo.physicsImpostor.sleep()/wakeUp(). Unfortunately, it appears that Ammo.js doesn't currently support the sleep and wakeUp functions :(

Until or if that is supported, there needs to be another way of pausing the in-flight route planning sim.

NOTE: this doesn't apply to ReadyToLaunchState, since physics aren't enabled during that phase

While physics sleep would be great, the problem wasn't actually with that area.