Skip to content

Commit

Permalink
Improve physics thread safety;
Browse files Browse the repository at this point in the history
- Error when trying to modify a collider during a world callback
- Use non-locking body interface when reading from a collider during a
  world callback to avoid deadlock
- Other Threads can still mess with colliders even while World:update is
  running in another thread, they will wait until the update is done.
- Use BodyInterface more, notably when reading collider pose info.

Remaining improvements:

There are still some places that aren't locking that maybe should be,
notably when using a body's MotionProperties?
  • Loading branch information
bjornbytes committed Jun 4, 2024
1 parent eb55cae commit b7ca3b8
Showing 1 changed file with 133 additions and 108 deletions.
Loading

0 comments on commit b7ca3b8

Please sign in to comment.