Skip to content

Commit

Permalink
Re-enabled World.Clear in physics, doesnt seem to cause a crash anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsakharov committed Apr 11, 2024
1 parent 6685502 commit 555bc61
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Prowl.Runtime/Physics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ internal void Update(double delta)

public void Dispose(bool clear = true)
{
// TODO: Causes a crash, seems to be a bug in Jitter2 where Shapes cannot be removed because they still have rigidbodies attatched to them
//world.Clear();
world.Clear();
if (clear)
Physics.PhysicalSpaces.Remove(this);
}
Expand Down

0 comments on commit 555bc61

Please sign in to comment.