From 9e803f6d36239402d79db8f647f88b480ff2275f Mon Sep 17 00:00:00 2001 From: zClapr <48451623+zClapr@users.noreply.github.com> Date: Thu, 7 Apr 2022 09:09:52 +0200 Subject: [PATCH] pre-present --- stable/UniversalOperator.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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]) # # # # # # # # # # # # # # # # #