public override void RotateAwayFromPosition() { var rotation = Quaternion.LookRotation(BotLocomotiveComponent.GetMoveAwayDestination() - BotLocomotiveComponent.transform.position, Vector3.up); Flying3DObjectComponent.YawTo(rotation.eulerAngles.y); }
public override void RotateTowardsPosition() { var rotation = Quaternion.LookRotation(BotLocomotiveComponent.FocusedOnPosition.Value - BotLocomotiveComponent.transform.position, Vector3.up); Flying3DObjectComponent.YawTo(rotation.eulerAngles.y); }