Simple crank mechanism
Objective: Initially 3 points are created with given co-ordinates as P0(0,0,0), P1 (0,-10,0) and P2 (-20,0,0) 2 cylindrical solids where created as rod1 (Connecting P0 and P1) and rod2 (Connecting P1 and P2) with diameter of 2m. 2 bodies were created for rod1 and rod2 and their mass and inertia properties where taken from the associated…