micromissiles-unity/Assets/Scripts/Config/StaticConfig.cs

43 lines
1012 B
C#
Raw Normal View History

using System;
2024-09-12 00:17:21 -07:00
[Serializable]
2024-09-13 22:45:25 -07:00
public class StaticConfig {
[Serializable]
2024-09-13 22:45:25 -07:00
public class AccelerationConfig {
public float maxReferenceAcceleration = 300f;
public float referenceSpeed = 1000f;
}
2024-09-12 00:17:21 -07:00
[Serializable]
2024-09-13 22:45:25 -07:00
public class BoostConfig {
public float boostTime = 0.3f;
public float boostAcceleration = 350f;
}
2024-09-12 00:17:21 -07:00
[Serializable]
2024-09-13 22:45:25 -07:00
public class LiftDragConfig {
public float liftCoefficient = 0.2f;
public float dragCoefficient = 0.7f;
public float liftDragRatio = 5f;
}
2024-09-12 00:17:21 -07:00
[Serializable]
2024-09-13 22:45:25 -07:00
public class BodyConfig {
public float mass = 0.37f;
public float crossSectionalArea = 3e-4f;
public float finArea = 6e-4f;
public float bodyArea = 1e-2f;
}
2024-09-12 00:17:21 -07:00
[Serializable]
2024-09-13 22:45:25 -07:00
public class HitConfig {
public float hitRadius = 1f;
public float killProbability = 0.9f;
}
2024-09-12 00:17:21 -07:00
2024-09-13 22:45:25 -07:00
public AccelerationConfig accelerationConfig;
public BoostConfig boostConfig;
public LiftDragConfig liftDragConfig;
public BodyConfig bodyConfig;
public HitConfig hitConfig;
2024-09-12 00:17:21 -07:00
}