# Static bodies in Fisica

**URL:** https://discourse.processing.org/t/static-bodies-in-fisica/17332
**Category:** Libraries
**Created:** [January 25, 2020, 8:25pm UTC](https://discourse.processing.org/t/static-bodies-in-fisica/17332 "2020-01-25T20:25:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![floflopm](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@floflopm](https://discourse.processing.org/u/floflopm)
#### Post date: [January 25, 2020, 8:25pm UTC](https://discourse.processing.org/t/static-bodies-in-fisica/17332/1 "2020-01-25T20:25:23Z")

</div>

Hi,

I am using the fisica library to create a game in which I have to define a set of boundaries with FBox. The problem is I am not able to disable the mouseDragged function (the player can move the boundaries, so the game is currently pointless).

Is there a way to fix this? I need to use Fisica because it makes the coding of collisions much simpler and I am a beginner at coding,

Thanks!

```auto
import fisica.*;
FWorld world;
FCircle circle;
FBox rectangle;
FBox rectangleh;
FBox caja;

ArrayList<FBox> rectangles = new ArrayList<FBox>();

void setup() {
  size(2000,1000); 
  smooth();
  
  
  Fisica.init(this);
  
  world = new FWorld ();
  world.setEdges();
  world.setGravity(0,0);
  
  int i = 0;
  while(i < 100){
    rectangle = new FBox(random(2,50),2);
    rectangle.setPosition(random(0,width),random(0,height));
    rectangle.setRestitution(1);
    rectangle.setDamping(0.01);
    rectangle.setStatic(false);
    rectangle.setFill(255);
    rectangle.setStroke(255);
    rectanglesh.add(rectangle);
    world.add(rectangle);
    i++;
  }
  

```
