Fixed issues with custom physics and static collisions.