quakeball/Assets/Scripts/Players/MoveStyle.cs

25 lines
1.4 KiB
C#
Raw Normal View History

2020-08-02 02:52:38 +02:00
using UnityEngine;
2020-08-07 20:23:21 +02:00
namespace NeonTea.Quakeball.Players {
2020-08-02 02:52:38 +02:00
/// <summary>Different modes of transportation.</summary>
[CreateAssetMenu(fileName = "Moving", menuName = "Quakeball/MoveStyle")]
public class MoveStyle : ScriptableObject {
/// <summary>The target velocity to accelerate towards.</summary>
public float TargetVelocity;
/// <summary>When decelerating, the speed at which the deceleration no longer decelerates.</summary>
public float StopVelocity;
/// <summary>The acceleration coefficient. Higher values mean faster acceleration.</summary>
public float Acceleration;
/// <summary>The acceleration coefficient in air. Higher values mean faster acceleration.</summary>
public float AirAcceleration;
/// <summary>The friction coefficient. Higher values mean faster slowdown, should be less than or equal to <c>Acceleration</c>.</summary>
public float Friction;
/// <summary>The friction coefficient in air. Higher values mean faster slowdown, should be less than or equal to <c>Acceleration</c>.</summary>
public float AirFriction;
/// <summary>The velocity that the player jumps in this style.</summary>
public float JumpVelocity;
/// <summary>Degrees that the player leans when moving sideways in this style.</summary>
public float LeanDegrees;
2020-08-02 02:52:38 +02:00
}
}