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

pub struct GenericNonlinearConstraint<N: RealField> {
    pub body1: BodyPartHandle,
    pub body2: BodyPartHandle,
    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

body1: BodyPartHandle

The first body affected by the constraint.

body2: BodyPartHandle

The second body affected by the constraint.

is_angular: bool

Whether this constraint affects the bodies translation or orientation.

dim1: usize

Number of degree of freedom of the first body.

dim2: usize

Number of degree of freedom of the second body.

wj_id1: usize

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

wj_id2: usize

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

rhs: N

The target position change this constraint must apply.

r: N

The scaling parameter of the SOR-prox method.

Methods

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

pub fn new(
    body1: BodyPartHandle,
    body2: BodyPartHandle,
    is_angular: bool,
    dim1: usize,
    dim2: usize,
    wj_id1: usize,
    wj_id2: usize,
    rhs: N,
    r: N
) -> Self
[src]

Initialize a new nonlinear constraint.

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Downcast for T where
    T: Any
[src]

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> Same for T

type Output = T

Should always be Self