I have a project where I am making a random terrain and then just moving a bike along it. the terrain generates random displacement points and makes a 2d map of mountains, etc.
I have an array of points and what i want to do is make my bike image to either rotate or be able to be placed or aligned were the two wheels are equal to the two y points that they are supposed to be.
For example if the bike is at x=10 middle of bike and the wheels are 2 to the right and left i want to position the bike to align with the x=8 and x=12 and corresponding y points from my terrain array.
I've looked around so hard and have found nothing that will work. all help will be appreciated thank you very much.
p.s. if u need script of any part of my project just ask im using a raspberry pi so i will just get it off it.