1
This commit is contained in:
@@ -20,7 +20,7 @@ namespace BITFALL.Entities.Player.Movement.States
|
||||
}
|
||||
public override void OnStateUpdate(float deltaTime)
|
||||
{
|
||||
if (Vector3.Distance(characterController.expectClimb.shouldBe, characterController.transform.position) < 0.1f || actor.IsStable)
|
||||
if (Vector3.Distance(characterController.ExpectClimb.shouldBe, characterController.transform.position) < 0.1f || actor.IsStable)
|
||||
{
|
||||
characterController.TransitionState<Walk>();
|
||||
}
|
||||
@@ -35,7 +35,7 @@ namespace BITFALL.Entities.Player.Movement.States
|
||||
|
||||
public override void UpdateVelocity(ref Vector3 currentVelocity, float deltaTime)
|
||||
{
|
||||
currentVelocity =(characterController.expectClimb.shouldBe - characterController.transform.position)*lerpDelta;
|
||||
currentVelocity =(characterController.ExpectClimb.shouldBe - characterController.transform.position)*lerpDelta;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user