Fix physics multithreading deadlock. Experimenting with new material system.