daleblackwood / goshapes

Intuitive path-based level editing for Godot 4
MIT License
151 stars 16 forks source link

Feature/add a "ground angle conformance" parameter to the ScatterShaper #39

Closed GGAlanSmithee closed 1 month ago

GGAlanSmithee commented 1 month ago

When placing foliage (with a ScatterShaper) it would be nice to allow the items to conform to the underlying grounds angle (normal vector). This PR adds that functionality by introducing a new parameter to the ScatterShaper - ground_angle_conformance - which can be set between 0 (no conformance) and 1 (full conformance).

See the videos below for the result

https://github.com/user-attachments/assets/d4ffae63-060e-4812-854a-0110d034b05b

https://github.com/user-attachments/assets/0790c169-49da-4254-b3f1-d67f146529a9

daleblackwood commented 1 month ago

Great idea, great work, thanks for the contribution!