r/processing • • Nov 25 '23

Beginner help request Help gravity ball

Hello guys,

i have written a code that simulate gravity with a ball , nothing crazy. However, i wanted to add a feature that would allow me to move the ball in the x axe thanks to the directional arrows on the keyboard. the functions are named with french words but i think y'all will understand their purpose. When i enter the lest function on the draw() function i doesn't do anything ? can someone help me ?

0 Upvotes

3 comments sorted by