ncdev2015 / SolarSystem-Godot

Orbit planets around the Sun

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Solar System in Godot

This example uses 2D position node and animate it adding movement with GDScript and Physics formula:

This is useful to learn rotation and angular (algebra) concepts.

First sample:

Solar System

By pressing SPACE key adds a new planet to scene and this start with spining.

Solar System

Second sample (planets with movement)

Solar System

Considerations:

  • By pressing the SPACE key it adds a new planet
  • The center of each planet is the Sun
  • Modify angular velocities to increase o decrease spin velocity

About

Orbit planets around the Sun


Languages

Language:GDScript 100.0%