26 lines
1.0 KiB
C#
26 lines
1.0 KiB
C#
using System;
|
|
using UnityEngine;
|
|
|
|
[Serializable]
|
|
public class SimulationSettings
|
|
{
|
|
[Tooltip("If enabled the simulation will constantly run on the entire plane. Enable with caution, has a big performance hit for large planes.")]
|
|
public bool fullPlaneSimulation;
|
|
|
|
[Tooltip("The size of the area around the main input to simulate.")]
|
|
public int simSize = 196;
|
|
|
|
[Tooltip("If enabled the simulation will stop and start depending on whether the main input is colliding with the plane or not.")]
|
|
public bool collisionCulling = true;
|
|
|
|
[Tooltip("The length of time to wait before stopping the simulation after collision culling has been triggered by colliding with something other than a water plane.")]
|
|
[Range(0f, 10f)]
|
|
public float exitPauseDelay = 2f;
|
|
|
|
[Tooltip("The length of time to wait before stopping the simulation after collision culling has been triggered by colliding with a different water plane.")]
|
|
[Range(0f, 10f)]
|
|
public float interPlanePauseDelay = 2f;
|
|
|
|
public AdaptiveSimulationSettings adaptiveSimulationSettings;
|
|
}
|