EGODE: An Event-attended Graph ODE Framework for Modeling Rigid Dynamics