A basic phyiscs solving mechanism in Unity