/// ---------------------------------------------
/// Ultimate Character Controller
/// Copyright (c) Opsive. All Rights Reserved.
/// https://www.opsive.com
/// ---------------------------------------------
namespace Opsive.UltimateCharacterController.Demo.AI
{
using Opsive.UltimateCharacterController.Character.MovementTypes;
using UnityEngine;
///
/// The Idle Movement Type will ensure the AI character doesn't move. A regular Movement Type could have also been used but there isn't a common Movement Type included
/// with all of the different packages so it's easier to use the same Movement Type for demo purposes.
///
public class Idle : MovementType
{
public override bool FirstPersonPerspective { get { return false; } }
///
/// Returns the delta yaw rotation of the character.
///
/// The character's horizontal movement.
/// The character's forward movement.
/// The camera's horizontal movement.
/// The camera's vertical movement.
/// The delta yaw rotation of the character.
public override float GetDeltaYawRotation(float characterHorizontalMovement, float characterForwardMovement, float cameraHorizontalMovement, float cameraVerticalMovement)
{
return 0;
}
///
/// Gets the controller's input vector relative to the movement type.
///
/// The current input vector.
/// The updated input vector.
public override Vector2 GetInputVector(Vector2 inputVector)
{
return inputVector;
}
}
}