C# Class BEPUphysics.Constraints.SpringSettings

Specifies the way in which a constraint's spring component behaves.
Mostrar archivo Open project: Indiefreaks/igf

Public Methods

Method Description
ComputeErrorReductionAndSoftness ( float dt, float &errorReduction, float &softness ) : void

Computes the error reduction parameter and softness of a constraint based on its constants. Automatically called by constraint presteps to compute their per-frame values.

Method Details

ComputeErrorReductionAndSoftness() public method

Computes the error reduction parameter and softness of a constraint based on its constants. Automatically called by constraint presteps to compute their per-frame values.
public ComputeErrorReductionAndSoftness ( float dt, float &errorReduction, float &softness ) : void
dt float Simulation timestep.
errorReduction float Error reduction factor to use this frame.
softness float Adjusted softness of the constraint for this frame.
return void