/box4d

Primary LanguageRust

Box 4D

Interact with a 3D slice of a 4D world, with 10 degrees of freedom movement and rigid body physics.

Try it out

spin.mp4

Features

  • Commits are (more or less) a "step by step" guide
  • No weird kinds of shaders, works in WebGL
  • Collision detection with 4D Minkowski portal refinement
  • 4D rigid-body physics
  • Sequential Impulse solving for contact and joint constraints

Left Undone

  • Some kind of position and attitude indicator would be nice
  • Other render methods - shadow projection instead of slicing?
  • Needs more shapes - possibly Dual Contouring of SDF + convex decomposition

Building

  • cargo run
  • trunk serve to run the web version