package tiny_libs

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

Module Joint3dSource

Sourcetype kind =
  1. | Ball of {
    1. cone : (Vec3.t * Vec3.t * float) option;
    }
  2. | Hinge of {
    1. axis_a : Vec3.t;
    2. axis_b : Vec3.t;
    3. ref_a : Vec3.t;
    4. ref_b : Vec3.t;
    5. limits : (float * float) option;
    6. motor : (float * float) option;
    }
  3. | Distance of {
    1. length : float;
    }
Sourcetype t = {
  1. a : int;
  2. b : int;
  3. anchor_a : Vec3.t;
  4. anchor_b : Vec3.t;
  5. kind : kind;
}
Sourceval ball : Body3d.t array -> int -> int -> at:Vec3.t -> ?cone:(Vec3.t * float) -> unit -> t
Sourceval hinge : Body3d.t array -> int -> int -> at:Vec3.t -> axis:Vec3.t -> ?limits:(float * float) -> ?motor:(float * float) -> unit -> t
Sourceval distance : Body3d.t array -> int -> int -> at_a:Vec3.t -> at_b:Vec3.t -> unit -> t
Sourcetype row
Sourceval rows : beta:float -> dt:float -> Body3d.t array -> t -> row list
Sourceval solve_row : Body3d.t array -> row -> unit
Sourceval anchors : Body3d.t array -> t -> Vec3.t * Vec3.t
Sourceval angle : Body3d.t array -> t -> float