Struct nphysics2d::resolution::VelocityConstraint [] [src]

pub struct VelocityConstraint<N: Real> {
    pub normal: Vector<N>,
    pub weighted_normal1: Vector<N>,
    pub weighted_normal2: Vector<N>,
    pub rot_axis1: Orientation<N>,
    pub weighted_rot_axis1: Orientation<N>,
    pub rot_axis2: Orientation<N>,
    pub weighted_rot_axis2: Orientation<N>,
    pub inv_projected_mass: N,
    pub impulse: N,
    pub lobound: N,
    pub hibound: N,
    pub objective: N,
    pub id1: isize,
    pub id2: isize,
    pub friction_limit_id: usize,
    pub friction_coeff: N,
}

A constraint of velocity at a point of contact.

Fields

The contact normal.

The contact normal multiplied by the first body's inverse mass.

The contact normal multiplied by the second body's inverse mass.

The first body rotation axis.

The first body rotation axis multiplied by its inverse inertia.

The second body rotation axis.

The second body rotation axis multiplied by its inverse inertia.

The inverse of the sum of linear and angular inertia of both bodies.

The total impulse applied.

The lower bound of the impulse.

The upper bound of the impulse.

The target delta velocity.

The id of the first body.

The id of the second body.

The id of the friction constraint.

The friction coefficient on this contact.

Methods

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

[src]

Creates a new velocity constraint with all terms initialized to zero.

Trait Implementations

impl<N: PartialEq + Real> PartialEq for VelocityConstraint<N>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<N: Debug + Real> Debug for VelocityConstraint<N>
[src]

[src]

Formats the value using the given formatter.

impl<N: Clone + Real> Clone for VelocityConstraint<N>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more