lop sided rolling?

Blitz3D Forums/Blitz3D Programming/lop sided rolling?

you could use case statements between (ie) -90 and 90 degrees to increase the y axis by a set amount variing on the angle of contact. This would be the simplest (and lamest) way but itd work fine. But might take lots of trial and error. The best way to do it is to wiite a small program which prints the y pos of the egg, and a line accross the bottom. then rotate it by whatever amount ie 4deg and then use the (ie) up arrow to aline it to the line. Read your y co-ordinate and write it down for that frame. Time consuming yes but if you have less frames its not too bad, probably better to put all the cases in a seperate include file as there will need to be at least 30 of them to get a smooth anim :)
not perfect but it may do!