26 lines
1.0 KiB
C#
26 lines
1.0 KiB
C#
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
namespace OnlyScove.Scripts.GameSetup
|
||
|
|
{
|
||
|
|
[CreateAssetMenu(fileName = "CharacterSetupSettings", menuName = "Setup/Character Setup Settings")]
|
||
|
|
public class CharacterSetupSettings : ScriptableObject
|
||
|
|
{
|
||
|
|
[Header("Movement Constraints")]
|
||
|
|
public float slopeLimit = 45f;
|
||
|
|
[Range(0.01f, 0.5f)] public float stepHeightRatio = 0.15f; // Step offset as % of height
|
||
|
|
|
||
|
|
[Header("Precision & Collision")]
|
||
|
|
public float skinWidthRatio = 0.1f; // Skin width as % of radius
|
||
|
|
public float minMoveDistance = 0.001f;
|
||
|
|
|
||
|
|
[Header("Dimension Multipliers")]
|
||
|
|
[Tooltip("Multiplies the detected shoulder width to define Radius.")]
|
||
|
|
public float radiusMultiplier = 0.8f;
|
||
|
|
[Tooltip("Multiplies the detected bounding box height.")]
|
||
|
|
public float heightMultiplier = 1.0f;
|
||
|
|
|
||
|
|
[Header("Center Offset")]
|
||
|
|
[Tooltip("Y-axis offset for the center of the capsule (0.5 means exact middle).")]
|
||
|
|
public float centerYRatio = 0.5f;
|
||
|
|
}
|
||
|
|
}
|