mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:45:33 +00:00
Disabled movement friction
This commit is contained in:
parent
3904abaa83
commit
cb0c37081c
1 changed files with 5 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue