in previous article, we cover why monster take 7 cells to the right is same amount of time moving 5 cells diagonally
reason ? Pythagorean theorem
A² + B² = C²
since monster is moving diagonally (45ยบ), A = B
5² + 5² = C²
2(25) = C²
50^½ = C
C = 7.07106...
so, what if it is the opposite ?
let's say I have 30 cells to the right, and I want to know how many cells needed to travel diagonally in the same amount of time
the formula is
2(A²) = C²
where C = 30
2(A²) = 30²
2(A²) = 900
A² = 450
A = 21.21320....
Subscribe to:
Post Comments (Atom)
Linux compiler error that never shown on Visual Studio
let's just admit Visual Studio sux ... ok ? right now, if you want to host a Private Ragnarok Online server, its just better to choose...
-
Ever since Hercules forked from rAthena since Jan 2013, Hercules has driven further away from its rAthena parent, many systems and feature...
-
conf\grf-files.txt //----------------------------------------- // GRF Files // Add as many as needed. //------------------------------------...
-
Useful Scripting Guides Shuffle Algorithm Sorting Algorithm What is the difference between .@i++ and ++.@i ? A simple walking npc scri...
No comments:
Post a Comment