text: class Ground{
    constructor(x,y,w,h){
      this.x=x;
      this.y=y;
      this.w=w;
      this.h=h;
  
      this.body=Bodies.rectangle(x,y,w,h);
      World.add(world,this.body);
    }
  
    display(){
      var pos=this.body.position
      push();
      translate(pos.x,pos.y);
      rectMode(CENTER);
      fill("grey");
      rect(0,0,this.w,this.h);
      pop();
    }
  }