Is it possible to create interactive visualisation in viewport

Is it possible to use physics in the viewport for doing dynamic visualization usually done in game-engine? Also is it possible to change the one mesh based on operations over other mesh with the help of bpy?