Struct mgf::ContactSolver [] [src]

pub struct ContactSolver<'a, Params = DefaultContactSolverParams> where
    Params: ContactSolverParams
{ /* fields omitted */ }

A PGE based constraint solver for contacts.

Methods

impl<'a, Params: ContactSolverParams> ContactSolver<'a, Params>
[src]

[src]

Construct a new empty solver

[src]

Construct a new empty solver with a given capacity

[src]

Add a constraint to the solver and pre-solve the constraint.

Unfortunately this interface requires taking two mutable references, so it's hard to work with this interface safely.

[src]

Solves the added constraints and updates the inserted physics objects with the correct new velocities.