mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
29 lines
664 B
C#
29 lines
664 B
C#
using Newtonsoft.Json;
|
|
using System.ComponentModel;
|
|
using UnityEngine;
|
|
|
|
namespace NewHorizons.External.Modules.Volumes.VolumeInfos
|
|
{
|
|
[JsonObject]
|
|
public class SpeedLimiterVolumeInfo : VolumeInfo
|
|
{
|
|
/// <summary>
|
|
/// The speed the volume will slow you down to when you enter it.
|
|
/// </summary>
|
|
[DefaultValue(10f)]
|
|
public float maxSpeed = 10f;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
[DefaultValue(100f)]
|
|
public float stoppingDistance = 100f;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
[DefaultValue(60f)]
|
|
public float maxEntryAngle = 60f;
|
|
}
|
|
}
|