blackrook-io / drones

Single player Godot 4 game of resource collecting, base building, exploration.
GNU General Public License v3.0
2 stars 0 forks source link

Feature: Spherical Scene terrain #13

Open blackrook-io opened 6 months ago

blackrook-io commented 6 months ago

I want to represent the 'world' in each scene as an asteroid or small semi-spherical body in a ring system around a planet. Thus, physics for movement and gravity should calculate not just the global -y direction as "down", but toward the center of the 3D object that is designated as the scene's "terrain".

Some helpful hints in research:

This video speaks to move_and_slide() having a parameter that describes the "down" direction. image

https://www.youtube.com/watch?v=_QHvKMRtJD0 https://www.youtube.com/watch?v=aL8TB_mB3j8

blackrook-io commented 6 days ago

Additional resources, maybe. Some are old:

https://www.youtube.com/watch?v=wldxVafAMSs

https://www.youtube.com/watch?v=7axJJYont6Y

https://www.reddit.com/r/GodotCSharp/comments/1ahzb8z/nonnewtonian_gravity_in_godot_4_video_tutorial/