Page 1 of 1
Velocity
Posted: 05 Feb 2007, 17:21
by Peet
Weapon and unit velocities use entirely different scales (the difference is roughly 3 orders of magnitude)....what is the exact ratio between them?
Posted: 09 Feb 2007, 00:17
by Peet
Alright, after prodding Tobi I have learned that unit speed is measured in units per frame (1/30 s) and weapon speed is in units per second.
For the record, the bomber flight model is kinda borked- the weapon has to have the same speed as the aircraft or they don't hit the target.
Posted: 18 Feb 2007, 15:56
by MadRat
So gamespeed has a major impact on weapon and unit speed?
From what you say unit speed decreases and weapon speed increases as gamespeed increases. And vice versa as gamespeed decreases?
Posted: 18 Feb 2007, 16:44
by Tobi
second == game time second in my explanation to P3374H
Posted: 18 Feb 2007, 17:42
by KDR_11k
Also there are 32 frames to a Spring Second(TM).
Posted: 18 Feb 2007, 19:35
by Tobi
No, 30.
Code: Select all
/**
* @brief game speed
*
* Defines the game speed as 30
*/
#define GAME_SPEED 30
You are mistaken with the fact that most (if not all) SlowUpdate() functions are called once every 32 frames (while they should be called once every second, but that is another issue), which makes it so that for certain calculations assuming 32 frames/second is more accurate then 30...
Posted: 18 Feb 2007, 21:22
by KDR_11k
So some things assume 30 FPS while others assume 32? That's going to be confusing...