mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-07-04 20:21:17 +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)
|
public override void PhysicsProcess(double delta)
|
||||||
{
|
{
|
||||||
var v3 = MainObject.Velocity;
|
var v3 = MainObject.Velocity;
|
||||||
Vector2 v = v3.ToVector2();
|
var v = v3.ToVector2();
|
||||||
float dt = (float)delta;
|
float dt = (float)delta;
|
||||||
|
|
||||||
Vector2 inputDir = PlayerStorage.MovementDirection;
|
Vector2 inputDir = PlayerStorage.MovementDirection;
|
||||||
|
|
@ -140,8 +140,10 @@ public partial class IsoMovementModule : ModuleBase<PlayerState, CharacterBody3D
|
||||||
}
|
}
|
||||||
else
|
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);
|
float vy = Mathf.Clamp(v3.Y + Gravity * dt, -FallSpeed, FallSpeed);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue