Visual mechanics