Revert "[Add] Inertia 1.0 (#979)" (#988)

This reverts commit 8ccefa558d.

Co-authored-by: vanx <vanxxxx@discord>
This commit is contained in:
vanx
2025-12-30 17:00:31 +03:00
committed by GitHub
parent 7697cf1362
commit e9740407bb
3 changed files with 1 additions and 13 deletions

View File

@@ -19,7 +19,7 @@ namespace Content.Shared.Movement.Components
public const float DefaultWeightlessModifier = 0.7f;
public const float DefaultWeightlessAcceleration = 1f;
public const float DefaultAcceleration = 50f; // White Dream inertia; 20f -> 50f
public const float DefaultAcceleration = 20f;
public const float DefaultFriction = 20f;
public const float DefaultFrictionNoInput = 20f;

View File

@@ -383,17 +383,6 @@ public abstract partial class SharedMoverController : VirtualController
return;
var accelSpeed = accel * frameTime * wishSpeed;
// White Dream edit start; Inertia/Gradual Acceleration
var progress = MathF.Max(0, currentSpeed) / wishSpeed;
accelSpeed *= progress;
var minAcceleration = MathF.Max(0.5f, 0.1f * wishSpeed);
accelSpeed = MathF.Max(accelSpeed, accel * frameTime * minAcceleration);
// White Dream edit end
accelSpeed = MathF.Min(accelSpeed, addSpeed);
currentVelocity += wishDir * accelSpeed;

View File

@@ -13,7 +13,6 @@
- type: MovementSpeedModifier
baseSprintSpeed: 12
baseWalkSpeed: 8
acceleration: 100 # White Dream
- type: MovementIgnoreGravity
- type: Physics
bodyType: KinematicController