重做杂兵
This commit is contained in:
@@ -42,7 +42,7 @@ namespace Cielonos.MainGame.Characters
|
||||
{
|
||||
float distanceVelocity = navMeshAgent.velocity.magnitude;
|
||||
float angularVelocity = Vector3.Angle(lastDirection, transform.forward) / owner.selfTimeSm.DeltaTime;
|
||||
moveSpeedZ.targetValue = distanceVelocity + (angularVelocity * 0.1f);
|
||||
moveSpeedZ.targetValue = distanceVelocity + (angularVelocity * 0.02f);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user