Struct nphysics2d::solver::NonlinearUnilateralConstraint[][src]

pub struct NonlinearUnilateralConstraint<N: Real> {
    pub r: N,
    pub rhs: N,
    pub ndofs1: usize,
    pub body1: BodyHandle,
    pub ndofs2: usize,
    pub body2: BodyHandle,
    pub kinematic: ContactKinematic<N>,
    pub normal1: Unit<Vector<N>>,
    pub normal2: Unit<Vector<N>>,
}

A non-linear position-based non-penetration constraint.

Fields

The scaling parameter of the SOR-prox method.

The target position change this constraint must apply.

Number of degree of freedom of the first body.

The first body affected by the constraint.

Number of degree of freedom of the second body.

The second body affected by the constraint.

The kinematic information used to update the contact location.

The contact normal on the local space of self.body1.

The contact normal on the local space of self.body1.

Methods

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

Create a new nonlinear position-based non-penetration constraint.

Auto Trait Implementations

impl<N> Send for NonlinearUnilateralConstraint<N> where
    N: Scalar

impl<N> Sync for NonlinearUnilateralConstraint<N> where
    N: Scalar