I need a solution to rotating a bike so that the two wheels always sit on the terrain( y points) in python and am using pygame module -


i have project making random terrain , moving bike along it. terrain generates random displacement points , makes 2d map of mountains, etc.

i have array of points , want make bike image either rotate or able placed or aligned 2 wheels equal 2 y points supposed be.

for example if bike @ x=10 middle of bike , wheels 2 right , left want position bike align x=8 , x=12 , corresponding y points terrain array.

i've looked around hard , have found nothing work. appreciated thank much.

p.s. if u need script of part of project ask im using raspberry pi off it.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -