diff --git a/stable/UniversalOperator.py b/stable/UniversalOperator.py index bf7a4f7..c06d821 100644 --- a/stable/UniversalOperator.py +++ b/stable/UniversalOperator.py @@ -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 # # @@ -11,11 +12,11 @@ cosmos.time_accuracy = 60*60 # /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]) # # # # # # # # # # # # # # # # #