[gameprogrammer] Re: advanced game
- From: Scott Harper <lareon@xxxxxxxxxxx>
- To: gameprogrammer@xxxxxxxxxxxxx
- Date: Sat, 28 Apr 2007 11:38:23 -0600
Do you have seen Sonic Adventure Games???
Do you have seen how he change his body rotation when is running
over a spiral????. Something like this image.
Do you have any idea how make something like that????
<fancy.bmp>
The only thing that occurs to me would be to have a definition of a
curve somewhere, calculate how far the avatar would run that frame,
then calculate distance along a curve, and finally find the normal at
that point. How to do this is beyond my recollection from math
classes, however, and there's GOT to be a better way... Oh! I bet
if you knew that the arc was part of a perfect circle you could
handle that pretty easily (relatively speaking). Again, I don't
remember the maths, but I recall it's not too hard to find things
like rotation/distance along the circumference of a circle, and once
you know the angle, well, there's your angle! ^_^
It's still likely a lot of trigonometry, and I have to believe
there's a better way to work it out... Let me think before I send this.
Well, it doesn't deal with exactly what you're saying, but here's an
amazing 2D collision tutorial I've found and plan on using
extensively in the near future(-ish) and I think that from the round
collision section you may be able to pull out some useful information
for what you want:
http://www.harveycartel.org/metanet/tutorials/tutorialA.html
-- Scott
---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html
- References:
- [gameprogrammer] Re: 2D math question
- From: Alan Wolfe
- [gameprogrammer] Scripting
- From: Edilson Vasconcelos de Melo Junior
- [gameprogrammer] Re: Scripting
- From: Brian
- [gameprogrammer] Re: advanced game
- From: Yasser Gonzalez
Other related posts:
- » [gameprogrammer] Re: advanced game
- » [gameprogrammer] Re: advanced game
- » [gameprogrammer] Re: advanced game
- » [gameprogrammer] Re: advanced game
- » [gameprogrammer] Re: advanced game
- » [gameprogrammer] Re: advanced game
- » [gameprogrammer] Re: advanced game
- » [gameprogrammer] Re: advanced game
- » [gameprogrammer] Re: advanced game
- » [gameprogrammer] Re: advanced game
Do you have seen Sonic Adventure Games???Do you have seen how he change his body rotation when is running over a spiral????. Something like this image.
Do you have any idea how make something like that???? <fancy.bmp>
- [gameprogrammer] Re: 2D math question
- From: Alan Wolfe
- [gameprogrammer] Scripting
- From: Edilson Vasconcelos de Melo Junior
- [gameprogrammer] Re: Scripting
- From: Brian
- [gameprogrammer] Re: advanced game
- From: Yasser Gonzalez