godot_terrain_plugin icon indicating copy to clipboard operation
godot_terrain_plugin copied to clipboard

Terrain in an instanced scene uses global_transform and not the parent translation

Open MagnusFurcifer opened this issue 4 years ago • 1 comments

As mentioned on discord, I've got some terrain that looks normal in the scene: image but when I instance that scene into my main game scene, the terrain is positioned using it's transform as it's global position, rather than translated based on the parent translations: image

These are the steps I took to produce it: 1> Create a scene 2> Instance that scene in the main scene and move it somewhere (In this case -y) 3> Create terrain in the child scene, adjust the map_scale and local transform to have it line up correctly with the rest of the child scene geometry. 4> Go back to the parent scene and the terrain is back at the origin + it's local transform.

MagnusFurcifer avatar May 22 '20 09:05 MagnusFurcifer

Sorry, this is the wrong repo ;) https://github.com/Zylann/godot_heightmap_plugin

Zylann avatar May 22 '20 11:05 Zylann