Struct nphysics3d::solver::GenericNonlinearConstraint[][src]

pub struct GenericNonlinearConstraint<N: Real> {
    pub body1: BodyHandle,
    pub body2: BodyHandle,
    pub is_angular: bool,
    pub dim1: usize,
    pub dim2: usize,
    pub wj_id1: usize,
    pub wj_id2: usize,
    pub rhs: N,
    pub r: N,
}

A generic non-linear position constraint.

Fields

The first body affected by the constraint.

The second body affected by the constraint.

Whether this constraint affects the bodies translation or orientation.

Number of degree of freedom of the first body.

Number of degree of freedom of the second body.

Index of the first entry of the constraint jacobian multiplied by the inverse mass of the first body.

Index of the first entry of the constraint jacobian multiplied by the inverse mass of the second body.

The target position change this constraint must apply.

The scaling parameter of the SOR-prox method.

Methods

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

Initialize a new nonlinear constraint.

Auto Trait Implementations