OOP is useful when it models physical responsibilities
OOP helps engineering code when objects map to real responsibilities.
A body, joint, solver, integrator, sensor, or material can own state and behavior that would otherwise spread across scripts. The design fails when classes only wrap functions without clarifying the model.
Good OOP makes the physical system easier to reason about.
Related: