Computer Science Canada CAN ANYONE EXPLAIN THESE CODE??

Author:  xmen [ Fri Apr 02, 2004 3:37 pm ]
Post subject:  CAN ANYONE EXPLAIN THESE CODE??

ok in this code with ball collision:

how does the collision part (credit THOUGHTFUL) works?? i dun reli understand but i need to inorder to explain to my teacher
so if someone knos plz tell me thx

 Author: recneps [ Fri Apr 02, 2004 5:33 pm ] Post subject: i dont know sin/cos/tan. if you do not know them, the easiest way is keep track of all the points, and math.distance between them all if its less than radius(times 2!!!) then make them move opposite ways.

 Author: Hackster [ Fri Apr 02, 2004 6:45 pm ] Post subject: UUm did you say explain to your teacher ??? does that mean you are goimg to pass Cervante's program off as your own or is it that he/she doesn't know the code either and they want to know ???

 Author: Jodo Yodo [ Fri Apr 02, 2004 7:16 pm ] Post subject: Jebus, xmen, PLEASE stop posting forums where the entire thing is capital letters, and with multiple question marks. This is like, the fifth forum you've made like this.

 Author: Jodo Yodo [ Fri Apr 02, 2004 7:18 pm ] Post subject: Due to my incredibly 1337 skills in Math, I can tell you that sine and cosine are used to calculate a certain point on the winding function (this is trigonometry). It's advanced Grade 10 Enriched math, and it does some funky stuff with the Pythagorean theorum (I like trigonometry, it's really useful). And are you seriously getting our programs and then submitting them to your teacher? Because you've asked for like, eight programs so far. Shame on you. SUPER JUICY!

 Author: xmen [ Fri Apr 02, 2004 9:36 pm ] Post subject: well yes i did ask n look for programs from this site, n yes mostly for hwk...however im like combining programs together depending on my needs, moreoever i still put credits on i actually told my teacher that i got some coddes from sites, he said its ok as long as i understand them n can explain......this is the purpose of learning so u guys may think im stealin programs or wutever, but im just learning from people just like many others do

 Author: Tony [ Fri Apr 02, 2004 9:45 pm ] Post subject: wow xman - if you got a question about the code (especially that you found on this site anyways) why not post a reply to that thread instead of just taking the code and pasting it elsewhere... without even giving a credit of where you took it from But yeah, collision is based on trig and momentum. You cover basic trig end of grade 10 math and inertia in grade 12 physics

 Author: Dan [ Fri Apr 02, 2004 9:47 pm ] Post subject: lreaning = reading some ones code and then making somting like it based on the conspetes. stealing = copying some ones code and hading it in as your own. you should at least ask the authour of the code if you are direcly copying and pasting code in to your own or just hading it in as your own.

 Author: Cervantes [ Sat Apr 03, 2004 2:08 pm ] Post subject: If your teacher asks you about collision code... or better yet, before he marks your program, tell him that you did not right the code for the collision data. Tell him the math is too advanced, and that you haven't learned it in math class yet (not good if you had math last semester). Just use the collision data code, with credit to thoughtful, and rewrite the entire program, or as much as you can do (with credit to me for things you can't do, if there are anythings in there that you can't do )

 :