Class Solver
A static class that exposes Solver configuration structures.
Inherited Members
Namespace: Unity.Physics
Assembly: Unity.Physics.dll
Syntax
public static class Solver
Fields
kDefaultSolverType
Default solver type
Declaration
public const SolverType kDefaultSolverType = Iterative
Field Value
| Type | Description |
|---|---|
| SolverType |
Methods
CalculateInvTimestep(float)
Takes the time step in ms and returns the inverse of the time step (simulation frequency) in Hz.
Declaration
public static float CalculateInvTimestep(float timestep)
Parameters
| Type | Name | Description |
|---|---|---|
| float | timestep | The time step in ms. |
Returns
| Type | Description |
|---|---|
| float | The inverse time step (simulation frequency) in Hz. |