2026-03-26 20:27:19 +07:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace OnlyScove.Scripts.GameSetup
|
|
|
|
|
{
|
2026-06-08 23:25:33 +07:00
|
|
|
[CreateAssetMenu(fileName = "CharacterSetupSettings", menuName = "BABA_YAGA/Setup/Character Setup Settings")]
|
2026-03-26 20:27:19 +07:00
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|