pub struct ResolveData<'a, B, P, R, I, A>where
    P: EuclideanSpace + 'a,
    P::Scalar: BaseFloat,
    R: Rotation<P> + 'a,
    I: 'a,
    A: Clone + 'a,
    B: Pose<P, R> + 'a,
{ pub velocity: Option<&'a NextFrame<Velocity<P::Diff, A>>>, pub pose: &'a B, pub mass: &'a Mass<P::Scalar, I>, pub material: &'a Material, /* private fields */ }
Expand description

Data used for contact resolution

Type parameters:

  • B: Transform type (BodyPose3 or similar)
  • P: Point type, usually Point2 or Point3
  • R: Rotational quantity, usually Basis2 or Quaternion
  • A: Angular velocity, usually Scalar or Vector3
  • I: Inertia, usually Scalar or Matrix3

Fields

velocity: Option<&'a NextFrame<Velocity<P::Diff, A>>>

Velocity for next frame

pose: &'a B

Position for next frame

mass: &'a Mass<P::Scalar, I>

Mass

material: &'a Material

Material

Implementations

Create resolve data

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.