[Solved] how do I override a static variable of a class


The velocityThreashold variable in your example is not final, nor is it an instance variable and therefore cannot technically be overridden.

What you can do is set the value of velocityThreashold to any value you want since it’s public.

I think what you’re going to want to do is something like the following:

public static void main(String[] args) {
  org.jbox2d.common.Settings.velocityThreashold = 2.0f;

  //... the rest of your program
}

1

solved how do I override a static variable of a class