Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added height correction feature #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wkunker
Copy link

@wkunker wkunker commented Oct 11, 2020

Hello,

I'm new to Godot/GDScript so I apologize for any sloppiness in my approach, or if a solution to this problem already exists and I missed it. Feel free to point out any issues and I'll promptly resolve them or close this pull request if it doesn't make sense.

Problem:
Objects placed by scatter aren't updated on their Y when terrain height is updated in the terrain plugin; nor should they be, since who knows what the author of the scene has intended.

Proposed solution:
Until a more thoughtful UI can be designed, I have simply placed a checkbox with the label "Height correction" which when enabled, repositions colliding objects to match the height of the terrain. This could possibly be enhanced in the future to allow for an offset to be specified.

How to test:

  • Place some objects on some terrain using scatter
  • Adjust the height of the terrain to cover the objects
  • Select the scatter node again, and check the "Height correction" box
  • Drag over the area where the objects are and watch as they reappear
  • Undo/redo functionality should work as expected

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant