Let be the new world!
Adds a body to the world.
worldWithFloor =
add planeBody worldCheck the Physics.Body module for possible bodies.
Set the standard gravity, e.g.:
planetEarth =
setGravity { x = 0, y = 0, z = -9.80665 } worldSimulate the world, given the number of milliseconds since the last frame.
Call this function on a message from the onAnimationFrame subscription.
Get all bodies from the world.
Use this to convert bodies into visual representation, e.g. WebGL entities.
Keep bodies that satisfy the test.
Apply a function to every body in the world.
Physical world is our abstract playground for physical simulations.