Designing a class library for interactive simulation of rigid body dynamics by