NewtonUserJointSetSolverModel

From Newton Wiki
Revision as of 08:02, 10 June 2019 by WikiSysop (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

NewtonUserJointSetSolverModel

void NewtonUserJointSetSolverModel(const NewtonJoint* const joint, int model)

Usage

Set the solver algorithm use to calculation the constraint forces.

Parameters

  • const NewtonJoint* const joint
  • int model

Return

  • (Procedure)

Description

  • model = 0 zero is the default value and tells the solver to use the best possible algorithm
  • model = 1 to signal the engine that is two joints form a kinematic loop
  • model = 2 to signal the engine this joint can be solved with a less accurate algorithm.
  • In case multiple joints form a kinematic loop, joints with a lower model are preffered towards an exact solution.

See also

NewtonUserJointGetSolverModel