Skip to content

Commit 2deaaa9

Browse files
committed
minor fixups
1 parent 04799aa commit 2deaaa9

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

UniversalOperator.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@
99
# # # # # # # # # # # # # # # # #
1010

1111
cosmos.time_accuracy = 60*60 # <time-unit>/calculation
12-
cosmos.max_time = cosmos.time_accuracy*(24*300) # max time to calculate for this config
12+
cosmos.max_time = cosmos.time_accuracy*(24*30) # max time to calculate for this config
1313

14-
b1 = celestrial_body(250*(10**3), [110,10,10], [255,0,0], 0, radius=10, innitial_velocity=[-0.0005,0,0])
14+
b1 = celestrial_body(250*(10**3), [110,10,10], [255,0,0], 0, radius=10, innitial_velocity=[0.001,0,0])
1515
b2 = celestrial_body(300*(10**3), [10,110,10], [0,255,0], 1, radius=20)
16-
# b3 = celestrial_body(500*(10**3), [10,10,110], [0,0,255], 2, radius=30)
1716

1817
# # # # # # # # # # # # # # # # #
1918

engine/physics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def __init__(self, mass:float, position:list, color:list, dcolor:int, radius:flo
119119
self.color = color
120120
self.batch = graphics.Batch()
121121
self.layers, self.vectors = [], {}
122-
self.velocity = [0,0,0]
122+
self.velocity = innitial_velocity
123123
self.innitial_velocity = innitial_velocity
124124

125125
if len(position) == 3: self.position = position

0 commit comments

Comments
 (0)