Disabled movement friction

This commit is contained in:
Marco 2025-08-29 15:07:27 +02:00
commit cb0c37081c

View file

@ -127,7 +127,7 @@ public partial class IsoMovementModule : ModuleBase<PlayerState, CharacterBody3D
public override void PhysicsProcess(double delta)
{
var v3 = MainObject.Velocity;
Vector2 v = v3.ToVector2();
var v = v3.ToVector2();
float dt = (float)delta;
Vector2 inputDir = PlayerStorage.MovementDirection;
@ -140,8 +140,10 @@ public partial class IsoMovementModule : ModuleBase<PlayerState, CharacterBody3D
}
else
{
Vector2 targetVel = inputDir * Speed;
v = InterpolateVelocityAxes(v, targetVel, Acceleration, Deceleration, TurnResistance, AxisReleaseFriction, dt);
v = inputDir * Speed;
// Vector2 targetVel = inputDir * Speed;
// v = InterpolateVelocityAxes(v, targetVel, Acceleration, Deceleration, TurnResistance, AxisReleaseFriction, dt);
}
float vy = Mathf.Clamp(v3.Y + Gravity * dt, -FallSpeed, FallSpeed);