What is the unit of sv_gravity?
Most people know that sv_gravity default value is equal to 800 but what I surely dont know is what is the type of value is this?
|
Re: What is the unit of sv_gravity?
I think it's a made-up "unit".
|
Re: What is the unit of sv_gravity?
I can understand it's 800 unit per sec squared
But how is that related to the earth gravity? |
Re: What is the unit of sv_gravity?
The actual units is mostly irrelevant in the game unless your trying to calculate a position or velocity based on free fall. 800 = 100% of "normal" gravity. So, if you set it to 400, it's 50% of normal.
Gravity is a unit of acceleration which is distance divided by time square. On earth, gravity is approximately 9.81 m/s^2. If we assume that 800 is earth gravity (which assumes the original developers also made this assumption) then 800 units is equal to 9.81 m/s^2. |
Re: What is the unit of sv_gravity?
I just transfered 800 units to meters and earth gravity in game is 20.32 meters/s2
|
Re: What is the unit of sv_gravity?
@Natsheh what algorithm are you using to convert units to meters (in-game) ?
|
Re: What is the unit of sv_gravity?
Quote:
I found it on the site. #define UnitsToMeters(%1) (%1 * 0.0254) I don't know how they got these digits |
Re: What is the unit of sv_gravity?
I don't think 800 is by any means a logical value related to real life gravity, it's simply a made up value.
You can't transfer "units" to meters, because meter itself is an unit, Quote:
I don't know if this could help you, but let's say we have an unit called OurUnit whose value is 800, and 800 is 9.81 m/s^2 in real life, you can do this: PHP Code:
|
Re: What is the unit of sv_gravity?
800 * 0.122625 = 98.1
If this applied to the rule of earth gravity, we wouldn't be able to even stand up. |
Re: What is the unit of sv_gravity?
Quote:
|
| All times are GMT -4. The time now is 17:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.