Whoops. Change physics object material index to an int, not a short!
Refactor object pair hash code - change doubly linked list to singly linked list
Also cleaned up some ugly stuff
Break if we've exceeded the maximum object count.