Basic Physics Library

HASH has a new physics library, which introduces four behaviors that you can use to create simulated physics environments.

  • forces.rs gives your agents realistic movement through space.
  • gravity.rs will pull agents to the ground.
  • collision.rs causes agents to bounce off one another, conserving momentum and energy.
  • spring.rs mimics springs with various strengths.

Explore a pendulum built with the physics library library behaviors >