Skip to content

Commit

Permalink
pre-present
Browse files Browse the repository at this point in the history
  • Loading branch information
zlumi committed Apr 7, 2022
1 parent 45208d1 commit 9e803f6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions stable/UniversalOperator.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import pyglet
from framework.window import mainWindow, screenWidth, screenHeight
from engine.physics import celestrial_body, cosmos
from random import randint

# # # # # # # # # # # # # # # # #
# # SIMULATION CONFIGURATIONS # #
Expand All @@ -11,11 +12,11 @@
cosmos.time_accuracy = 60*60 # <time-unit>/calculation
cosmos.max_time = cosmos.time_accuracy*(24*30) # max time to calculate for this config

b1 = celestrial_body(250*(10**3), [110,10,10], [255,0,0], 0, radius=10)
b2 = celestrial_body(300*(10**3), [10,110,10], [0,255,0], 1, radius=20)
b3 = celestrial_body(500*(10**3), [10,10,110], [0,0,255], 2, radius=30)
b1 = celestrial_body(250*(10**3), [randint(-100, 100), randint(-100, 100), randint(-100, 100)], [255,0,0], 0, radius=10)
b2 = celestrial_body(300*(10**3), [randint(-100, 100), randint(-100, 100), randint(-100, 100)], [0,255,0], 1, radius=20)
b3 = celestrial_body(500*(10**3), [randint(-100, 100), randint(-100, 100), randint(-100, 100)], [0,0,255], 2, radius=30)

b1.setVelocity([-0.0005,0,0])
# b1.setVelocity([-0.0005,0,0])

# # # # # # # # # # # # # # # # #

Expand Down

0 comments on commit 9e803f6

Please sign in to comment.