Enum nphysics2d::resolution::CorrectionMode [] [src]

pub enum CorrectionMode<N: Real> {
    Velocity(N),
    VelocityAndPosition(N, N, N),
    VelocityAndPositionThresold(N, N, N),
}

The correction coefficient used by the constraint solver.

Variants

Penetration are solved by the penalty method.

Penetration are solved by the penalty method together with a hard repositioning.

Penetration are solved by the penalty method together with a hard repositioning.

The amount of velocity correction is bounded by threshold.

Methods

impl<N: Real> CorrectionMode<N>
[src]

[src]

The velocity correction coefficient.

[src]

The position correction coefficient.

[src]

The minimum penetration depth required to switch on the hard repositioning based method.

[src]

The max penetration depth the velocity correction will attempt to correct.