Rolling a football downhill

Blitz3D Forums/Blitz3D Programming/Rolling a football downhill

Hey all!

I asked a similar question a couple of days ago, but I messed up the question so bad that even I didn't know how to answer it ^^

Anyway..

given the X,Y position of a sphere, how would you compute the rotations of this object if you were to move it around the x-y axis?

I use this expression for figuring out how much to rotate it if I move it in just the X or Y, but both at the same time messes up the rotation.

RotateX = sin(SphereX/(2*pi*radius))*360
RotateY = sin(SphereY/(2*pi*radius))*360

Anyone?

like this?

http://www.blitzbasic.com/codearcs/codearcs.php?code=255

There's ball rolling code in the code archives. And I think you mean XZ plane. :-)

yeah I probably mean that ^^ I get confused after working with 3DSMax for a while! ^^

I'll check it out, but I swear I scanned the whole code arcs.. :/

Isn't a football a different shape than that of a normal ball? In this particular case, the only course of action would be to...er...go on a quest to...er...never mind. I quit.

that's the first thing I thought too,... then I realised I was being a silly American thinking football meant Football! :)

nope, this isn't what Im looking for.. I have to turn the ball in whole 360 degrees before I can "snap" i back into original rotation..

and yeah, its Soccer football not silly american football :)
oh wait.. all football is sucky!

Keep in mind I only need the actual rotation expressions as Im going to use it in 3DStudio Max..

Well we have oval shaped American footy, and we have Oval shaped Aussie Rules Footy. I think you are outnumbered 2 to 1 :-)

No help at all to your question but !! (:-(

hehe

well thanks anyway for clearing that up ^^