Fixed michael animations
This commit is contained in:
@@ -21,7 +21,8 @@ namespace GameJamDungeon
|
||||
|
||||
enemy.Velocity = (targetPosition - enemy.GlobalTransform.Origin).Normalized() * 2f;
|
||||
var lookAtDir = enemy.GlobalTransform.Origin - enemy.Velocity;
|
||||
enemy.LookAt(new Vector3(lookAtDir.X, enemy.GlobalPosition.Y, lookAtDir.Z));
|
||||
if (enemy.Velocity != Vector3.Zero)
|
||||
enemy.LookAt(new Vector3(lookAtDir.X, enemy.GlobalPosition.Y, lookAtDir.Z));
|
||||
|
||||
Output(new Output.MovementComputed());
|
||||
return ToSelf();
|
||||
|
||||
Reference in New Issue
Block a user