Terminal velocity changes based on time?

I am using the java port of Box2D (JBox2D) and have encountered a weird issue.

Initialization (From the tutorial):
Code:
1. Instantiate world.
2. Create and add body using world


Main loop:
Code:
world.step(1/60f, 10, 10);


Result:

Velocity caps at 120.

If i use time delta as 1/30f, i get velocity capped at 60.

Similarly, 1f, velocity capped at 2.

Is this my implementation, or is this an intentional simulation of terminal velocity?

Shouldn't velocity increase infinitely?
It sounds like you are hitting the default maximum linear velocity limit set in b2Settings.h:

/// The maximum linear velocity of a body. This limit is very large and is used
/// to prevent numerical problems. You shouldn't need to adjust this.
#define b2_maxTranslation 2.0f
Oh. 🙁

It's too small, imho!

Is there an elegant way to get around this? Because the max velocity looks ridiculously slow.
This a distance per time step, not a velocity. Also, units in Box2D are tuned to be meters, so at a typical framerate of 60Hz, a body covering 2 units per timestep is moving at 120 m/s or 432 km/h (270 mph), which is not really that slow.

So it's fast enough to represent a very fast car (coincidentally the Bugatti Veyron, the world's fastest road legal car has a top speed of 431.07 km/h 🙂 ) but not for a fast aircraft or something like that. If you were making a game requiring things to move at say 1000km/h you would most likely want to scale all the dimensions down by half. I believe the ideal is to have the average dynamic body about 1 unit in size.

The fix is either to use units that take the above into account, or change the setting if it makes things easier for you.
Oh, I understand now! I guess that was a kinda derp moment from me.

I'm just so used to all my homegrown physics systems measuring in pixels/sec.

However, why does the maximum velocity change with update interval? Is it the maximum amount an object can move in one update call?

Would this ever see issues with something like dynamic update intervals? ((delta T in ms)/1000f)
Yes, it's the maximum movement for one time step. I'm not really sure what the comment means by 'numerical problems'.

If you increase this setting to allow you to keep everything in pixel dimensions, bear in mind that an object of say 80 pixels is really about the size of a jumbo jet in the physics world, so the behavior might not appear so well tuned. Increasing gravity tends to make things behave as if they were smaller, but you might then need to fiddle with some of the other numbers in b2Settings.h as well.

I've never used anything other than plain meters for units, but I see a lot of people using a pixel-to-meter ratio to multiply all the physics dimensions by, so that they can keep the default settings.
Yeah, the solution I used is to just multiply everything by a ratio when rendering.

Thanks for your help! This was confusing the hell out of me.

Original thread: https://box2d.org/forum/viewtopic.php?t=7503