Physics Scale Factor (Havok)

@Cedric

An API for tweaking speed clamps already exists:

The key benefit of a simulation scale factor is reducing floating point errors, which can really start to add up in tiny scenes. Let’s say you’ve got a 1cm x 1cm scene. Right now, that 1cm length is getting stored as 0.01 in Havok’s guts.

So while 1cm is exactly 0.01m in the real world, inside the simulation that 0.01 might end up as something like 0.0099999999 due to rounding errors. Those tiny discrepancies can snowball into visible glitches.

But if you could tell Havok, “hey, multiply everything by 100 internally and treat it as centimeters”, then that 1cm length would be represented as a nice clean “1.0” under the hood. Much less opportunity for precision loss to creep in and far more numerically stable.