Dr Super Good
Spell Reviewer
- Joined
- Jan 18, 2005
- Messages
- 27,285
Posting this as someone asked me to investigate it so might as well store the results somewhere more appropriately than on their user profile.
Object editor unit Movement - Turn Rate is in radians per internal frame. WC3 runs at an internal frame rate of 1 / 0.03 (~33.3...) frames per game second. A Turn Rate of 0.01 in the object editor corresponds to an actual turn rate of 19.1 degrees per game second. Note that this is relative to game time and not real time, the ratio of which is defined by game speed.
To put it in perspective the Blood Mage hero has a base Turn Rate of 0.5. This means it has a theoretical turn rate of 954.9 degrees per second, so should turn approximately 2.65 full revolutions per second. In theory only however...
The maximum physically possible turn rate is ~381.95 degrees per second, measured in game. This means that turn rate values above 0.20 in the editor should be pointless. However units rotation uses some basic physics controlled by the field Art - Orientation Interpolation meaning it has both acceleration and deceleration. With a value of 0.20 it may never accelerates fast enough to reach the maximum rotation speed of ~381.95 degrees per game second before it begins deceleration. This means that values above 0.20 do increase rotation rate only by increasing rotation rate acceleration and not the actual maximum rotation rate.
Trigger turning a unit without a specified time seems to use some arbitrary, high value turn rate (greater than 0.20). Even with a time specified and set to be a very small value it is still limited to ~381.95 degrees per game second or ~0.20 radians per frame.
The Art - Orientation Interpolation field seems to have strange mechanics, almost like it is choosing a behaviour rather than setting a value. At a value of 0 units instantly reach the maximum rotation rate with some minor over/under shooting at desired facing. At 1 units can reach half rotation rate, 0.1, in my tests. Starting with 2 it becomes some kind of acceleration/deceleration mechanic.
Of other note is this research backs why people say use 0.03 second timeouts for trigger enhanced abilities. Unit rotation updates exactly every 0.03 game seconds, no more no less. I would not be surprised if the entire Warcraft III engine worked like this.
Object editor unit Movement - Turn Rate is in radians per internal frame. WC3 runs at an internal frame rate of 1 / 0.03 (~33.3...) frames per game second. A Turn Rate of 0.01 in the object editor corresponds to an actual turn rate of 19.1 degrees per game second. Note that this is relative to game time and not real time, the ratio of which is defined by game speed.
To put it in perspective the Blood Mage hero has a base Turn Rate of 0.5. This means it has a theoretical turn rate of 954.9 degrees per second, so should turn approximately 2.65 full revolutions per second. In theory only however...
The maximum physically possible turn rate is ~381.95 degrees per second, measured in game. This means that turn rate values above 0.20 in the editor should be pointless. However units rotation uses some basic physics controlled by the field Art - Orientation Interpolation meaning it has both acceleration and deceleration. With a value of 0.20 it may never accelerates fast enough to reach the maximum rotation speed of ~381.95 degrees per game second before it begins deceleration. This means that values above 0.20 do increase rotation rate only by increasing rotation rate acceleration and not the actual maximum rotation rate.
Trigger turning a unit without a specified time seems to use some arbitrary, high value turn rate (greater than 0.20). Even with a time specified and set to be a very small value it is still limited to ~381.95 degrees per game second or ~0.20 radians per frame.
The Art - Orientation Interpolation field seems to have strange mechanics, almost like it is choosing a behaviour rather than setting a value. At a value of 0 units instantly reach the maximum rotation rate with some minor over/under shooting at desired facing. At 1 units can reach half rotation rate, 0.1, in my tests. Starting with 2 it becomes some kind of acceleration/deceleration mechanic.
Of other note is this research backs why people say use 0.03 second timeouts for trigger enhanced abilities. Unit rotation updates exactly every 0.03 game seconds, no more no less. I would not be surprised if the entire Warcraft III engine worked like this.
Last edited: