Skip to content
This repository has been archived by the owner on May 22, 2020. It is now read-only.

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

Open
MagnusFurcifer opened this issue May 22, 2020 · 1 comment

Comments

@MagnusFurcifer
Copy link

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
Copy link
Owner

Zylann commented May 22, 2020

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

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants