How can I set the Flycamera's air friction?

When I use the fly camera, there is a momentum that slowly brings the camera to a halt. I want to change it so the camera stops moving instantly when input stops or tune how fast this friction slows it down.

Is there a direct way to change this variable that slows the camera? The closest thing I could find in the API are speed and applyGravity:

https://doc.babylonjs.com/api/classes/babylon.flycamera

Thanks!

It inherits from target camera which has an inertia property I would try.
camera.inertia = 0 maybe?

1 Like

Thanks a bunch! That worked perfect. I just started learning Babylon, I’ll look up the dependency tree more, I must have missed that.