The goal here is to extend elm-physics API so that simulations like raycast vehicle could be built in external Elm packages.
Some functions are already implemented in the raycast vehicle PR and could be extracted and merged individually.
[x] Get the linear velocity of a point on a body velocityAt : Point3d Meters WorldCoordinates -> Body data -> Vector3d MetersPerSecond WorldCoordinates
[x] Get body mass mass : Body data -> Maybe Mass
[ ] Place a body in a frame placeIn : Frame3d Meters WorldCoordinates { defines : BodyCoordinates } -> Body data -> Body data
[x] Transform vector with body inversed inertia tensor (function name TBD, alternatively the whole inertia could become its own module with useful functions) tbd : Body data -> Vector3d units1 WorldCoordinates -> Vector3d units2 WorldCoordinates
The goal here is to extend elm-physics API so that simulations like raycast vehicle could be built in external Elm packages.
Some functions are already implemented in the raycast vehicle PR and could be extracted and merged individually.
velocityAt : Point3d Meters WorldCoordinates -> Body data -> Vector3d MetersPerSecond WorldCoordinates
mass : Body data -> Maybe Mass
placeIn : Frame3d Meters WorldCoordinates { defines : BodyCoordinates } -> Body data -> Body data
tbd : Body data -> Vector3d units1 WorldCoordinates -> Vector3d units2 WorldCoordinates