Physics-Simulator
v1.4.0-beta.2
|
Physics values for how the program works.
. More...
Variables | |
const float | global::physics::kMeterPixelRatio = 10 |
const float | global::physics::kBallDensity = 7850 |
const float | global::physics::kGravity = -9.81 |
const float | global::physics::kDragCofficient = 0.47 |
const float | global::physics::kKineticFriction = 0.36 |
const float | global::physics::kDensityAir = 1.2041 |
const float | global::physics::kMinVelocity = 0.0 |
const float | global::physics::kCoefficientRestitution = 0.76 |
uchar | global::physics::collisionmethod = CollideInelastic |
const double | global::physics::kAirDynViscosity = 2.22043 * pow(10,-5) |
Physics values for how the program works.
.
uchar global::physics::collisionmethod = CollideInelastic |
The collision method to use (see Collisions Enum)
const double global::physics::kAirDynViscosity = 2.22043 * pow(10,-5) |
dynamic viscosity of air at 20°C
const float global::physics::kBallDensity = 7850 |
Density of the ball in kg/m3 (7850 is steel)
const float global::physics::kCoefficientRestitution = 0.76 |
How much total energy remains after a collision, (see https://en.wikipedia.org/wiki/Coefficient_of_restitution for more info)
const float global::physics::kDensityAir = 1.2041 |
Density of air (in kg/m3)
This value is based on air at 20ºC and 101.325 kPa
See https://en.wikipedia.org/wiki/Density_of_air for more info
const float global::physics::kDragCofficient = 0.47 |
Drag coefficient in the air.
Value is based on that of a sphere.
See https://en.wikipedia.org/wiki/Drag_coefficient for more info.
const float global::physics::kGravity = -9.81 |
Acceleration due to gravity in m/s2
const float global::physics::kKineticFriction = 0.36 |
Kinetic Friction values based on Concrete and Steel
const float global::physics::kMeterPixelRatio = 10 |
1 meter = this many pixels.
const float global::physics::kMinVelocity = 0.0 |
If a ball has less velocity than the it will "die"