dwarfcorp icon indicating copy to clipboard operation
dwarfcorp copied to clipboard

Camera: View will snap into ground when nearby bedrock level pit

Open com1clyf3 opened this issue 6 years ago • 2 comments

cameradeep2.zip

Camera snaps through terrain looking down to bottom layer.

  1. Build a shaft that goes down to bedrock.
  2. Slowly approach the shaft with the camera from a side view. You might also be able to activate this bug by pressing Q into the shaft from some distance away.
  3. Observe the camera snaps through terrain, looking down to the bottom layer while exposing some OOW stuff too.

012018c8

com1clyf3 avatar Sep 18 '18 18:09 com1clyf3

This is due to a discontinuity in terrain height causing the camera following terrain to fail. I might clamp the terrain height following or greatly slow it down to reduce this effect.

mklingen avatar Sep 22 '18 14:09 mklingen

I just pushed a change that makes camera height following much much slower, and clamps the total terrain height that it will change the camera by to 10 voxels. Please try it and let me know what you think.

mklingen avatar Sep 22 '18 14:09 mklingen