地图初步
This commit is contained in:
@@ -47,7 +47,7 @@ namespace Cielonos.MainGame.Characters
|
||||
}
|
||||
}
|
||||
|
||||
public void SmartTurnToTarget(CharacterBase target, float maxTurnAngle = 150f)
|
||||
public void SmartTurnToTarget(CharacterBase target, float maxTurnAngle = 360f)
|
||||
{
|
||||
Vector3 directionToTarget = (target.centerPoint.position - owner.centerPoint.position).Flatten();
|
||||
if (directionToTarget.sqrMagnitude < 0.001f) return;
|
||||
|
||||
Reference in New Issue
Block a user