Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Travelling in an arc
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
cycro1234




PostPosted: Sat Oct 30, 2004 5:46 pm   Post subject: Travelling in an arc

Hello! It's me again! Is there any way to animate a ball travelling in an arc instead of a straight line? Thx in advance
Sponsor
Sponsor
Sponsor
sponsor
AsianSensation




PostPosted: Sat Oct 30, 2004 7:12 pm   Post subject: (No subject)

yep, depends on how advanced of an arc you want the ball to travel in.

For simple ones, some cos and sin would do.

For a little more complex ones, equation of an ellipse, x^2/a^2 + y^2/b^2 = 1 should do.

For the most complex ones, which include things like starting veloctiy, starting angle, gravity, blah blah blah, google the formula (I don't remember it offhand) and just substitute x, solve for y, and draw it.
cycro1234




PostPosted: Sat Oct 30, 2004 7:54 pm   Post subject: (No subject)

aight thx!
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: