Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ def add_planet(name, radius, mass, distance_from_sun):
|
|
51 |
##z = radius * math.sin(angle)
|
52 |
##planet.location = (x, y, z)
|
53 |
##planet.keyframe_insert(data_path="location", index=-1, frame=frame)
|
54 |
-
angle = math.radians(frame *
|
55 |
planet.rotation_euler = (0, 0, angle)
|
56 |
planet.keyframe_insert(data_path="rotation_euler", index=-1, frame=frame)
|
57 |
##return planet
|
|
|
51 |
##z = radius * math.sin(angle)
|
52 |
##planet.location = (x, y, z)
|
53 |
##planet.keyframe_insert(data_path="location", index=-1, frame=frame)
|
54 |
+
angle = math.radians(frame * 18)
|
55 |
planet.rotation_euler = (0, 0, angle)
|
56 |
planet.keyframe_insert(data_path="rotation_euler", index=-1, frame=frame)
|
57 |
##return planet
|