Posted February 19, 2024 by CookieBadger
#godot #asset #placement #terrain #3d
If you have been using Godot for 3D projects recently, then you might know that another plugin is making the news: Terrain3D by Tokisan Games. It is a clip mesh-terrain, similar to what was used in The Witcher 3: Wild Hunt. If you have been using AssetPlacer and Terrain3D together, you might have been annoyed by the circumstance, that you could only place on the Terrain if you enabled debug collisions.
This changes today, with the introduction of the new Terrain3D placement mode!
This mode is only available when you have the Terrain3D plugin enabled. To use it, you need a Terrain3D node in your scene (add via the usual "Add Node" dialog), then select the Terrain3D placement mode in the AssetPlacer and assign the Terrain3D node. You should now be able to place on the terrain, same as you would place on physics surfaces.
You might notice some imprecisions, especially when working with Orthogonal viewports. This is due to the way Terrain3D calculates intersections with the terrain. On the other hand, you might also find the snapping option less useful, as the terrain does not act as one surface for the assetplacer, and hence snap positions are unstable. If I ever find a better implementation, and if this is a feature you would deem very useful, I might improve it in the future.
Here is the full list of changes in the update:
As usual, if you run into any issues or problems, let me know so I can fix them for you!