Zylann / godot_terrain_plugin

3D Terrain plugin for Godot Engine [NO LONGER MAINTAINED]
128 stars 24 forks source link

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

Open MagnusFurcifer opened 4 years ago

MagnusFurcifer commented 4 years ago

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.

Zylann commented 4 years ago

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