1 using System.Collections;
2 using System.Collections.Generic;
29 public const string NO_PARAM =
"none";
47 public bool speedFoldout =
false;
49 public virtual void Init() {
50 Debug.LogError(
"Must override this method");
55 protected float physicsTime;
56 protected float worldTime;
58 protected float DT = 0.005f;
60 protected void TimeInit() {
61 worldTime = Time.time;
65 protected int CalcNumSteps() {
67 worldTime += Time.fixedDeltaTime;
68 float timeSlice = Mathf.Max(worldTime - physicsTime/timeZoom, 0);
69 int numSteps = Mathf.RoundToInt(timeSlice/DT);
70 physicsTime += numSteps * DT;
ParamBundle customParams
Custom parameter values for evolution (valid only if selectedParams exceeds number of params listed i...
Chaotic system. Base class for chaotic scripts. Holds the type of system selected, the parameter set or the custom parameters to be used.
int selectedEqn
Number of chaos system to evolve (w.r.t. ChaosFactory list)
float timeZoom
Time scale (>0)
Vector3 evolveScale
Scale to apply to phyics evolution when mapping back to world space.
bool paramFoldout
Editor foldout tab status.
Parameter bundle. Container class to hold the values for starting a chaotic system. Holds the parameters for the equations and the initial position and scale values.
int selectedParams
Number of parameter bundle selected for evolution (per chaotic equation)