package tiny_libs

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module SolverSource

Sourcetype options = {
  1. iterations : int;
  2. warm_starting : bool;
  3. baumgarte : float;
  4. slop : float;
  5. bounce_threshold : float;
  6. matching : float;
}
Sourceval default : options
Sourcetype pair = {
  1. a : int;
  2. b : int;
  3. contacts : Contact.t list;
  4. restitution : float;
  5. friction : float;
}
Sourcetype memory
Sourceval nothing : memory
Sourceval solve : options -> dt:float -> ?joints:(float array * Joint2d.t list) -> Body.t array -> pair list -> memory -> Body.t array * memory
Sourceval impulses : memory -> (int * int) -> float list