Note how the camera goes up/down depending if the center encounters elevation/hole.
[previewyoutube=teE3e_9ACLw;full][/previewyoutube]
But now we'll introduce 13 raycasts to camera detection. Here is how that we'll work in theory (note that you will not be seeing 13 raycasts in-game and this is just for demonstration purposes):
So, now the camera jumping will happen when 13 raycasters are on the new ground level. What this means is that you'll essentially be able to pass through elevations, walls and holes shaped as 3m circles (diameter of 4 voxels) and the camera will not jump.
There are some other tricks, too. For instance, let's say that you want to jump from layer 5 to layer 4, but the terrain there is uneven - there are some holes and/or elevated parts, because the land can be terraformed. In those cases, the camera will calculate existing raycasters and at least 8 out of those 13 should be at the same level in order for the camera to ease onto the new level.
[previewyoutube=0K3No_UdjKE;full][/previewyoutube]
We’ll be introducing a couple more conditions to avoid unnecessary jumping. The camera will not be offset by beams anymore. In addition to that, walls that are displayed in half (due to being at .5 level) will not trigger camera offset.
Layer changing will still be done via Ctrl + mouse scroll, while Camera layer locking and scrolling will be done via Shift + mouse scroll.
We’re aware that [url=https://steamcommunity.com/app/1029780/eventcomments/715609968122828939?snr=1_2108_9__2107]many of you[/url] think that keeping the camera locked by default should be a go to solution. We were experimenting with that, but keep in mind that we want this game to feel welcoming for both old and new players. People that never played our game before were a bit confused by the layout in that case (the results were similar to the solution 2 in [url=https://store.steampowered.com/news/app/1029780/view/6023073831692308558]MMT 43[/url]). It added unnecessary friction.
That being said, we think that this multi raycast system fixes a lot of problems, while camera locking will provide additional quality of life improvement to those that seek it.
We can’t wait for you to try the new camera and let us know how it feels. There are more MMTs to come, about other, long awaited features. Talk to you about that next week. Until then…
Stay medieval!
[url=https://store.steampowered.com/developer/foxyvoxel][i][b]Foxy Voxel[/b][/i][/url]
[url=https://discord.gg/goingmedieval style=button]Discord[/url] [url=https://www.reddit.com/r/goingmedieval/ style=button]Reddit[/url] [url=https://x.com/going_medieval style=button]X/Twitter[/url] [url=https://bsky.app/profile/foxyvoxel.bsky.social style=button]Bluesky[/url] [url=https://www.tiktok.com/@going.medieval style=button]TikTok[/url] [url=https://www.facebook.com/FoxyVoxel style=button]Facebook[/url]