Discussion about math, puzzles, games and fun. Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °
You are not logged in.
Post a reply
Topic review (newest first)
Ahh ha.. I got it...
Basically I need to plot out a rise over run to meet an angle.. The intersecting point on the line from origin to destination would be the product of the sum of the rise pluss the run which would be an distance equivalent to the speed.
Your angle never changes.. In each step you have to increase or decrease from the origin to the destination, if each step for ax or ay is always 4 then the angle is always the same.. Which isn't true in every instance.
I think the compiler is changing the number because its out of range or something.. I tried var:Number and var:Int .. had no effect on the number.. but I'm not sure why one is out of range and the other isn't..
Another example of the second equation... ax = (x2-x1)/40; a bullet near and far...
ok I tried it again.. and this is way off not even hitting target..
t is computed from the distance and fixed speed so when the distance is small the travel time should be small.
I guess I shouldn't be complaining because the bullets are right on target.. but I just think it looks strange when the bullets are traveling at different speeds.
You would think so but its not happening.. and I'm not sure why.. like I said the only thing I can think of is because the distance is changing..
That should give a constant speed of s.
as in.. bullet one is shot when x1 is relatively close to x2, the speed of the bullet is slow.... but bullet 2 is shot when x1 is far from x2 and the speed is fast.. I want both bullets to be traveling at the same speed, regardless of the distance.
Ok lets just substitute time with speed...
I'll have to introduce my own letters.