w0rm/elm-physics/5.1.1

NOTE: the latest version is 6.2.0

Physics.Constraint

type alias Constraint =
Protected

Constraint allows to limit the freedom of movement of two bodies with relation to each other.

Point3d Meters BodyCoordinates
-> Point3d Meters BodyCoordinates
-> Constraint

Connect a point on the first body with a point on the second body. This doesn’t limit the freedom of rotation of two bodies. Points are defined within the bodies’ local coordinate systems.

Axis3d Meters BodyCoordinates
-> Axis3d Meters BodyCoordinates
-> Constraint

Keep two bodies connected with each other and limit the freedom of rotation. Useful for e.g. connecting a window to a window frame, or to connect a wheel to a car.

distance : Length -> Constraint

Keep the centers of two bodies at the constant distance from each other.

Frame3d Meters BodyCoordinates {}
-> Frame3d Meters BodyCoordinates {}
-> Constraint

Keep two bodies connected with each other and remove all degrees of freedom between bodies.