package tiny_libs

  1. Overview
  2. Docs
From-scratch libraries for teaching: graphics, audio, compression, crypto, networking and more

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.3.6.tar.gz
md5=7c636383d146d30ac6f2fa234a6253c8
sha512=c79f3823c5f8f57e5038eb640d487c61168b84aa07c61999d6622ef9fd0c890e2b03b4c6a7cdbbe9352a49e25dda00ac7bb14693cee8e3d7beeed251351a2af0

doc/tiny_libs.physics_3d/Joint3d/index.html

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