rigs-of-rods icon indicating copy to clipboard operation
rigs-of-rods copied to clipboard

Paused actor physics resume when switching to another actor

Open CuriousMike56 opened this issue 1 year ago • 1 comments

  • Spawn two actors
  • Press END key to pause physics for current actor
  • Switch to the other actor, previous actor's physics will resume

https://github.com/RigsOfRods/rigs-of-rods/assets/46073351/bc072281-e17c-45ce-9133-5c57becf54e8

Also recently noticed the skeleton debug view disables itself when switching actors, possibly related?

CuriousMike56 avatar Nov 18 '23 20:11 CuriousMike56

Here is the culprit (and yes, skeletonview related): https://github.com/RigsOfRods/rigs-of-rods/blame/master/source/main/physics/ActorManager.cpp#L745-L746 - it broke in https://github.com/RigsOfRods/rigs-of-rods/commit/9431e1b508575c40498ed9becd8a0385a3b95463 - I needed to reset the paused/skeleton after decoupling from the player vehicle. Doesn't make big sense for paused state but it's important with skeleton view.

ohlidalp avatar Mar 31 '24 02:03 ohlidalp