35 lines
1.3 KiB
C#
35 lines
1.3 KiB
C#
using UnityEngine;
|
|
|
|
//-----------------------------------------------------------------------
|
|
// Author: Colby-O
|
|
// File: Settings.cs
|
|
//-----------------------------------------------------------------------
|
|
namespace ColbyO.VNTG.Example
|
|
{
|
|
[CreateAssetMenu(fileName = "DefaultFirstPersonSettings", menuName = "VNTG/Example/FirstPersonSettings")]
|
|
internal class Settings : ScriptableObject
|
|
{
|
|
[Header("Look")]
|
|
[Min(0)] public float ControllerSensitivityScaleFactor = 2f;
|
|
[Min(0)] public float Sensitivity = 3f;
|
|
public Vector2 YLookLimit = new Vector2(-80f, 80f);
|
|
public bool InvertLookY = false;
|
|
public bool InvertLookX = false;
|
|
|
|
[Header("Movement")]
|
|
[Min(0)] public float Speed = 10f;
|
|
[Range(0f, 1f)] public float BackwardSpeedMul = 0.5f;
|
|
[Range(0f, 1f)] public float StrafingSpeedMul = 1f;
|
|
[Min(0)] public float GravityMul = 1f;
|
|
[Min(0)] public float InputSmoothing = 15f;
|
|
[Range(0f, 1f)] public float AirControl = 0.2f;
|
|
[Min(0)] public float TerminalVelocity = 50f;
|
|
|
|
[Header("Heading Bobing")]
|
|
public bool EnableHeadMotion = true;
|
|
[Range(0.001f, 0.01f)] public float HeadBobAmount;
|
|
[Range(1f, 30f)] public float HeadBobFreqency;
|
|
[Range(10f, 100f)] public float HeadBobSmoothing;
|
|
}
|
|
}
|