Orbital Gravitation Game (UPBGE 0.3)

Hi,
simple orbital Gravitation game.
Can you make them orbit?
UPBGE_0.3_GravitationGame.blend (1.7 MB)

Welcome!

Gravity Intensity: Mousewheel Up/Down or Arrow-Keys Up/Down
Show/Hide SpaceTime-Grid: Space-Key

Planets:
    Hover with mouse over:    
        Change mass: Mousewheel Up/Down or Arrow-Keys Up/Down
        Change size: Mousewheel Up/Down or Arrow-Keys Up/Down   - with CTRL-Key pressed
            
    Apply Force: Left MouseButton and drag   (red Line)
    
    Make child orbit around parent: Right MouseButton on child drag green Line to parent, then release 
    
    pin: Left DoubleClick

Add/Remove Planets:
    CTRL-LeftClick on Planet or empty Space      
    
PS: There is an additional Scene_SunEarthMoon with initial velocities set 

3 Likes

this is supper great !

1 Like

With right mouse button you can now make a planet rotate around another (green line)
And there is another demo scene with initially set velocities (SunEarthMoon)

Show/Hide SpaceTime-Grid: Space-Key

2 Likes

Now Size of each planet can be changed

Mousewheel Up/Down or Arrow-Keys Up/Down   - with CTRL-Key pressed

and they can be pinned at their place.

pin: Left DoubleClick

Add/Remove Planets:
CTRL-LeftClick on Planet or empty Space

(But the Spacetime grid only works with the 3 default planets)

SpaceTime-grid now supports 10 planets but default is 5 for performance reason on my machine.
Can be set in game.py:

############################# 
number_of_geo_inputs = 5   # max 10 , the background shader node-pairs will be unmuted by code
#############################

2 Likes

pinned planets now really keep their place.
Adding new planets will use the last used settings: mass, scale, pinned

Awesome work!!

1 Like