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!
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++;
}