- addVariable
ulong addVariable(float* var)
Add a float variable to the simulation
- addVariable
ulong addVariable(vec2* var)
Add a vec2 variable to the simulation
- drawDebug
void drawDebug(mat4 trans)
Undocumented in source.
- eval
void eval(float t)
Evaluate the simulation at a given time
- getState
float[] getState()
Undocumented in source. Be warned that the author may not have intended to support it.
- setD
void setD(ulong index, float value)
Set the derivative of a variable (solver input) by index
- setD
void setD(float var, float value)
Set the derivative of a float variable (solver input)
- setD
void setD(vec2 var, vec2 value)
Set the derivative of a vec2 variable (solver input)
- setState
void setState(float[] vals)
Undocumented in source. Be warned that the author may not have intended to support it.
- tick
void tick(float h)
Run a simulation tick (Runge-Kutta method)