Base class for updating multiple solvers in parallel. Derive from this class to write your onw updater. This grants you precise control over execution order, as you can choose to update solvers at any point during Unity's update cycle.
More...
|
void | PrepareFrame () |
| Prepares all solvers to begin simulating a new frame. This should be called as soon as possible in the frame, and guaranteed to be called every frame that will step physics. More...
|
|
void | BeginStep (float stepDeltaTime) |
| Prepares all solvers to begin simulating a new physics step. This involves caching some particle data for interpolation, performing collision detection, among other things. More...
|
|
void | Substep (float stepDeltaTime, float substepDeltaTime, int index) |
| Advances the simulation a given amount of time. Note that once BeginStep has been called, Substep can be called multiple times. More...
|
|
void | EndStep (float substepDeltaTime) |
| Wraps up the current simulation step. This will trigger contact callbacks. More...
|
|
void | Interpolate (float stepDeltaTime, float accumulatedTime) |
| Interpolates the previous and current physics states. Should be called right before rendering the current frame. More...
|
|
Base class for updating multiple solvers in parallel. Derive from this class to write your onw updater. This grants you precise control over execution order, as you can choose to update solvers at any point during Unity's update cycle.
void Obi.ObiUpdater.BeginStep |
( |
float |
stepDeltaTime | ) |
|
|
protected |
Prepares all solvers to begin simulating a new physics step. This involves caching some particle data for interpolation, performing collision detection, among other things.
- Parameters
-
stepDeltaTime | Duration (in seconds) of the next step. |
void Obi.ObiUpdater.EndStep |
( |
float |
substepDeltaTime | ) |
|
|
protected |
Wraps up the current simulation step. This will trigger contact callbacks.
void Obi.ObiUpdater.Interpolate |
( |
float |
stepDeltaTime, |
|
|
float |
accumulatedTime |
|
) |
| |
|
protected |
Interpolates the previous and current physics states. Should be called right before rendering the current frame.
- Parameters
-
stepDeltaTime | Duration (in seconds) of the last step taken. |
stepDeltaTime | Amount of accumulated (not yet simulated) time. |
void Obi.ObiUpdater.PrepareFrame |
( |
| ) |
|
|
protected |
Prepares all solvers to begin simulating a new frame. This should be called as soon as possible in the frame, and guaranteed to be called every frame that will step physics.
void Obi.ObiUpdater.Substep |
( |
float |
stepDeltaTime, |
|
|
float |
substepDeltaTime, |
|
|
int |
index |
|
) |
| |
|
protected |
Advances the simulation a given amount of time. Note that once BeginStep has been called, Substep can be called multiple times.
- Parameters
-
substepDeltaTime | Duration (in seconds) of the substep. |
List of solvers updated by this updater.
The documentation for this class was generated from the following file:
- Assets/Obi/Scripts/Common/Updaters/ObiUpdater.cs