Well, I have to make a cannon turn over a center :) but i don'T know how can i do it and i need an algorithm for it,, or mybe a functuin
wnat to turn this using that x's sinus ^^
cant really tell what your after; applied force? or just motion of rotation about the origin?
Domain of x: [-length of cannon, length of cannon]
well i want to make this cannon rotate over a origin ^^
x = |cannon| cos(t) y = |cannon| sin(t)
just thouht that I can use trigonometry to make it rotate
hmmm then what we do to rotate?
you can use parametric equations to make it rotate
hmm
i think that if we ++ sint that can rotate
becuase hypotenuse is const and the if we raise the averse edge we can make hypotenuse move ^^
and to raise the averse edge we should raise the sint ye?
var g = setInterval('rotateMe',speed) function rotateMe() { x = |length| Math.cos(t) y = |length| Math.sin(t) plot = 'position:absolute; top:y; left:x' document.getElementById('img').position = plot t = t+angle of rotation {
hmmm give me a min to analyse this
WOW really good!
so make 2 dats and draw the cannon between these 2 dats?
yep
one of them is origgn .. and the other one is the end of hypotenuse
really nice! I just started to program this in C# and XNA :D
i do most of my stuff in javascript and html these days; aint got the money to get nothing better lol
lol
its been awhile since i played in vb; prolly would have to take a refresher course
VB u mean Visual baisc .NET?
well why you need a refresher course?
gonna be taking a few programming courses for my math degree, nothing to fancy lol
AHh k ^^ can you explain me what is nmemonic devices?
it means memory trick. Something that is supposed to help you remember how to perform something.
hmmm kk
pedmas is a mnemonic device for remembering the order of operations
hmm ty
so how can we use these?
Join our real-time social learning platform and learn together with your friends!