public static Entity box(Material material, float width, float height, float depth, float density) {
Entity entity = new Entity(Resources.box(material, width, height, depth));
entity.addBehavior(Collider.box(width, height, depth));
entity.addBehavior(new RigidBody());
entity.rigidBody().mass = width * height * depth * density;
float w2 = width * width;
float h2 = height * height;
float d2 = depth * depth;