Issue #4771: Move PhysicsWorld to Layer

For review.
Test case is uncompleted.