Merge PR #5268:PhysicsContact should be inherited from EventCustom, it will simplify the logic of emitting collision events

Merge PR #5268