整合SLSUtilities
This commit is contained in:
@@ -88,7 +88,7 @@ namespace Cielonos.MainGame.Characters
|
||||
return;
|
||||
}
|
||||
|
||||
gravitationalMovement += (40f * Vector3.down * DeltaTime) * DeltaTime;
|
||||
gravitationalMovement += (40f * Vector3.down * DeltaTime) * gravityMultiplier * DeltaTime;
|
||||
}
|
||||
|
||||
protected virtual void UpdateFinalMovement()
|
||||
@@ -96,7 +96,10 @@ namespace Cielonos.MainGame.Characters
|
||||
horizontalMovement.y = 0;
|
||||
|
||||
initiativeMovementVelocity = horizontalMovement + new Vector3(0, verticalMovement, 0);
|
||||
|
||||
if (!isApplyingGravity)
|
||||
{
|
||||
jumpVelocity = Mathf.Max(jumpVelocity, 0);
|
||||
}
|
||||
Vector3 jumpMove = new Vector3(0, jumpVelocity * DeltaTime, 0);
|
||||
|
||||
owner.additionalForceSm.Update(owner.attributeSm["ImpactResistance"]);
|
||||
@@ -104,7 +107,6 @@ namespace Cielonos.MainGame.Characters
|
||||
|
||||
finalMovementVelocity = initiativeMovementVelocity + forceMove + jumpMove + gravitationalMovement;
|
||||
|
||||
|
||||
bool isHorizontalMoving = horizontalMovement.magnitude > 0.1f * DeltaTime;
|
||||
animator.SetBool(Animator.StringToHash("IsHorizontalMoving"), isHorizontalMoving);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user