mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-01 04:01:56 +02:00
Make ambient heat drag effects weaker.
This commit is contained in:
@@ -160,7 +160,7 @@ void Air::update_airh(void)
|
|||||||
auto weight = (hv[y][x] - ambientAirTemp) / 10000.0f;
|
auto weight = (hv[y][x] - ambientAirTemp) / 10000.0f;
|
||||||
|
|
||||||
// Our approximation works best when the temperature difference is small, so we cap it from above.
|
// Our approximation works best when the temperature difference is small, so we cap it from above.
|
||||||
if (weight > 0.1f) weight = 0.1f;
|
if (weight > 0.01f) weight = 0.01f;
|
||||||
|
|
||||||
vx[y][x] += weight * convGravX;
|
vx[y][x] += weight * convGravX;
|
||||||
vy[y][x] += weight * convGravY;
|
vy[y][x] += weight * convGravY;
|
||||||
|
Reference in New Issue
Block a user