Obi  6.4
Unified particle physics for Unity
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Obi.ObiLateUpdater Class Reference

Updater class that will perform simulation during LateUpdate(). This is highly unphysical and should be avoided whenever possible. This updater does not make any accuracy guarantees when it comes to two-way coupling with rigidbodies. It is only provided for the odd case when there's no way to perform simulation with a fixed timestep. If in doubt, use the ObiFixedUpdater component instead. More...

Inheritance diagram for Obi.ObiLateUpdater:
Obi.ObiUpdater

Public Attributes

float deltaSmoothing = 0.95f
 Smoothing factor fo the timestep (smoothDelta). Values closer to 1 will yield stabler simulation, but it will be off-sync with rendering. More...
 
int substeps = 4
 Each FixedUpdate() call will be divided into several substeps. Performing more substeps will greatly improve the accuracy/convergence speed of the simulation. Increasing the amount of substeps is more effective than increasing the amount of constraint iterations. More...
 
- Public Attributes inherited from Obi.ObiUpdater
List< ObiSolversolvers = new List<ObiSolver>()
 List of solvers updated by this updater. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Obi.ObiUpdater
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...
 

Detailed Description

Updater class that will perform simulation during LateUpdate(). This is highly unphysical and should be avoided whenever possible. This updater does not make any accuracy guarantees when it comes to two-way coupling with rigidbodies. It is only provided for the odd case when there's no way to perform simulation with a fixed timestep. If in doubt, use the ObiFixedUpdater component instead.

Member Data Documentation

float Obi.ObiLateUpdater.deltaSmoothing = 0.95f

Smoothing factor fo the timestep (smoothDelta). Values closer to 1 will yield stabler simulation, but it will be off-sync with rendering.

int Obi.ObiLateUpdater.substeps = 4

Each FixedUpdate() call will be divided into several substeps. Performing more substeps will greatly improve the accuracy/convergence speed of the simulation. Increasing the amount of substeps is more effective than increasing the amount of constraint iterations.


The documentation for this class was generated from the following file: