Velocity

Velocity

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Velocity

Post 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?
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Post 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.
User avatar
MadRat
Posts: 532
Joined: 24 Oct 2006, 13:45

Post 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?
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

second == game time second in my explanation to P3374H
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Also there are 32 frames to a Spring Second(TM).
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post 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...
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

So some things assume 30 FPS while others assume 32? That's going to be confusing...
Post Reply

Return to “Help & Bugs”