Computer Science Canada Canon simulator |
Author: | Insectoid [ Wed Dec 09, 2009 10:13 am ] | ||
Post subject: | Canon simulator | ||
I've been messing around with velocity/trig and whatnot, and came up with this. Controls: Up/down arrow keys- change angle press spacebar to start power-up release to end power-up press space again to fire!
Whadaya think? |
Author: | mirhagk [ Wed Dec 09, 2009 10:57 am ] |
Post subject: | RE:Canon simulator |
just an idea, maybe reset the angle to the last fired (same with power) because firing at angles of 45.76747 is kinda wierd |
Author: | Insectoid [ Wed Dec 09, 2009 11:43 am ] |
Post subject: | RE:Canon simulator |
ah, gotcha. I'll be updating this with more features and stuff over time. Done the CS curriculum, nothing left to do but mess around with Turing. |
Author: | Insectoid [ Wed Dec 09, 2009 11:59 am ] | ||
Post subject: | Re: Canon simulator | ||
Now with bounce!
Note that, while I hate physics with a passion, 95% of the math in this I learned in grade 12 physics. |
Author: | Insectoid [ Wed Dec 09, 2009 1:06 pm ] |
Post subject: | RE:Canon simulator |
I'm working on having the 'elastic' modify the X velocity of the 'cannonball' but I'm having trouble with the physics. Also, I don't know if my math is wrong or if this is a result of rounding error, but the X velocity is not constant in my latest posted version. Can anyone figure out why? EDIT: The X velocity only changes by .1 at the most, so I'll attribute that to rounding error. |
Author: | GalacticVenus [ Wed Dec 09, 2009 2:53 pm ] |
Post subject: | RE:Canon simulator |
Canon or Cannon? There is quite a large difference, ya know. ![]() |
Author: | Insectoid [ Wed Dec 09, 2009 3:41 pm ] |
Post subject: | RE:Canon simulator |
Both, I'm throwing printers and cameras from a cannon. |
Author: | SNIPERDUDE [ Wed Dec 09, 2009 11:51 pm ] |
Post subject: | Re: RE:Canon simulator |
insectoid @ December 9th 2009 wrote: Both, I'm throwing printers and cameras from a cannon.
In Canaan? |