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

Constraint proper cleanup/destruction #82

Open
DennisSmolek opened this issue Apr 26, 2024 · 1 comment
Open

Constraint proper cleanup/destruction #82

DennisSmolek opened this issue Apr 26, 2024 · 1 comment

Comments

@DennisSmolek
Copy link
Collaborator

In recent builds for controllers I noticed crashes when switching tabs. I found this to be related to constraints trying to cleanup.
First with RemoveConstraint but later even with Raw.module.destroy()

For now I've commented out the removal function but it needs to be determined the best way to do this.

Asked on the Jolt Discussions Here.

@DennisSmolek DennisSmolek changed the title Constrain proper cleanup/destruction Constraint proper cleanup/destruction Apr 26, 2024
@DennisSmolek
Copy link
Collaborator Author

See this comment
Constraints need to be destroyed BEFORE bodies are removed.

Will probably need a constraint register on the PhysicsSystem checks for bodies when they remove themselves to test if they belong to existing constraints.

Maybe that should also be on the body-state itself?

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

No branches or pull requests

1 participant