Static utility class for handling gravity in Vehicle Physics Pro
More...
|
| const float | forceToMass = 1.0f / reference |
| | Factor for converting a force value into earth-equivalent mass. This is used for calculating an equivalent mass out of a force regardless of the actual gravity value and direction. More...
|
| |
| const float | massToForce = reference |
| | Factor for converting a mass into earth-equivalent force. Used for calculating the force that mass would cause in earth gravity. More...
|
| |
| const float | reference = 9.807f |
| | Reference gravity value. This is used for calculating accelerations in earth-equivalent G factors. More...
|
| |
|
| static float | magnitude [get] |
| | Absolute magnitude of the gravity acceleration (m/s2). More...
|
| |
| static Vector3 | up [get] |
| | Normalized vector pointing "up" in current gravity value. More...
|
| |
| static Vector3 | value [get, set] |
| | Actual physics gravity value. Some handy values are also cached when modifying this (magnitude, up). More...
|
| |
Static utility class for handling gravity in Vehicle Physics Pro
| static void VehiclePhysics.Gravity.Refresh |
( |
| ) |
|
|
inlinestatic |
| const float VehiclePhysics.Gravity.forceToMass = 1.0f / reference |
Factor for converting a force value into earth-equivalent mass. This is used for calculating an equivalent mass out of a force regardless of the actual gravity value and direction.
| const float VehiclePhysics.Gravity.massToForce = reference |
Factor for converting a mass into earth-equivalent force. Used for calculating the force that mass would cause in earth gravity.
| const float VehiclePhysics.Gravity.reference = 9.807f |
Reference gravity value. This is used for calculating accelerations in earth-equivalent G factors.
| float VehiclePhysics.Gravity.magnitude |
|
staticget |
Absolute magnitude of the gravity acceleration (m/s2).
| Vector3 VehiclePhysics.Gravity.up |
|
staticget |
Normalized vector pointing "up" in current gravity value.
| Vector3 VehiclePhysics.Gravity.value |
|
staticgetset |
Actual physics gravity value. Some handy values are also cached when modifying this (magnitude, up).
The documentation for this class was generated from the following file:
- KSP/Assets/Packages/VehiclePhysicsPro/Core/Vehicle Physics core/Base/Gravity.cs