mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 05:27:38 +03:00
This reverts commit 8ccefa558d.
Co-authored-by: vanx <vanxxxx@discord>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user