﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;


// TODO: Import Standard assets CrossPlatformInput library


public class PlayerMovementKeyboard : MonoBehaviour, IPlayerMovement
{
    // See more: https://docs.unity3d.com/ScriptReference/CharacterController.Move.html
    public Vector3 GetMovement(float walkSpeed, float runSpeedMultiplier, float rotateSpeed)
    {
        // read inputs on horizontal (h) and vertical (v)


        // Returns the movement vector


        // Apply speed


        //// Apply jumping if applicable


        // If there is movement, i.e. movement is not zero, 
        if (true)
        {

            // If this is not a mobile device, if user is running (pressing left shift key) increase speed by multiplying by run speed multiplier


            // Apply gravity. Gravity is multiplied by deltaTime twice (once here, and once below
            // when the movement is multiplied by deltaTime). This is because gravity should be applied
            // as an acceleration (ms^-2)

            //If is umping apply gravity


            // Gradually rotate character forward in direction of the movement direction (Quaternion.LookRotation) 
            // using the defined rotation speed and make it frame rate independent (multiply by Time.deltatime)
            
        }

        return Vector3.zero;
    }

}
