Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paused actor physics resume when switching to another actor #3105

Open
CuriousMike56 opened this issue Nov 18, 2023 · 1 comment · May be fixed by #3146
Open

Paused actor physics resume when switching to another actor #3105

CuriousMike56 opened this issue Nov 18, 2023 · 1 comment · May be fixed by #3146

Comments

@CuriousMike56
Copy link
Collaborator

CuriousMike56 commented Nov 18, 2023

  • Spawn two actors
  • Press END key to pause physics for current actor
  • Switch to the other actor, previous actor's physics will resume
8mb.video-epB-H7TZSjzk.mp4

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

@CuriousMike56 CuriousMike56 changed the title Actor physics resume when switching to another actor Paused actor physics resume when switching to another actor Nov 18, 2023
@ohlidalp
Copy link
Member

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 9431e1b - 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants