w0rm/elm-physics/3.2.2

NOTE: the latest version is 6.2.0

Physics.Debug

A list of utilities that may be useful for debugging.

World data
-> List
{ x : Float
, y : Float
, z : Float
}

Get the contact points in the world.

type alias FaceNormal =
{ normal :
{ x : Float
, y : Float
, z : Float
}
, point :
{ x : Float
, y : Float
, z : Float
}
}

A face normal consists of a normal vector for a face and a reference point on the face.

These are both expressed within the local body coordinate system.

getFaceNormals : Body data -> List FaceNormal

Get the face normals of the body.

type alias UniqueEdge =
{ direction :
{ x : Float
, y : Float
, z : Float
}
, point :
{ x : Float
, y : Float
, z : Float
}
}

A unique edge consists of a unit direction vector that runs parallel to an edge of a face.

A vertex point of the body is also provided for context.

These are both expressed within the local body coordinate system.

getUniqueEdges : Body data -> List UniqueEdge

Get the unique edges of the body.