[][src]Struct nphysics3d::solver::SignoriniModel

pub struct SignoriniModel<N: RealField> { /* fields omitted */ }

A contact model generating one non-penetration constraint per contact.

This is a frictionless contact model.

Methods

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

pub fn new() -> Self[src]

Create a new Signorini contact model.

pub fn build_velocity_constraint(
    params: &IntegrationParameters<N>,
    body1: &dyn Body<N>,
    part1: &dyn BodyPart<N>,
    body2: &dyn Body<N>,
    part2: &dyn BodyPart<N>,
    props: &LocalMaterialProperties<N>,
    manifold: &ColliderContactManifold<N>,
    ext_vels: &DVector<N>,
    c: &TrackedContact<N>,
    impulse: N,
    impulse_id: usize,
    ground_j_id: &mut usize,
    j_id: &mut usize,
    jacobians: &mut [N],
    constraints: &mut ConstraintSet<N>
) -> bool
[src]

Build a non-penetration velocity-based constraint for the given contact.

pub fn is_constraint_active(
    c: &TrackedContact<N>,
    manifold: &ColliderContactManifold<N>
) -> bool
[src]

Checks if the given constraint is active.

pub fn build_position_constraint(
    bodies: &BodySet<N>,
    manifold: &ColliderContactManifold<N>,
    c: &TrackedContact<N>,
    constraints: &mut ConstraintSet<N>
)
[src]

Builds non-linear position-based non-penetration constraints for the given contact manifold.

Trait Implementations

impl<N: RealField> ContactModel<N> for SignoriniModel<N>[src]

Auto Trait Implementations

impl<N> Send for SignoriniModel<N>

impl<N> Sync for SignoriniModel<N>

Blanket Implementations

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

impl<T> From for 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