mirror of
https://github.com/quantum5/punyverse.git
synced 2025-04-24 13:11:57 -04:00
Stops the sky from rotating.
Also: asteroids go front when you move back. Uranus rotates about the right axis.
This commit is contained in:
parent
4e51fdaff3
commit
e0e1a619f0
|
@ -197,7 +197,7 @@ class Applet(pyglet.window.Window):
|
||||||
elif symbol == key.SPACE:
|
elif symbol == key.SPACE:
|
||||||
c = self.cam
|
c = self.cam
|
||||||
dx, dy, dz = c.direction()
|
dx, dy, dz = c.direction()
|
||||||
speed = self.speed * 1.1 + 5
|
speed = abs(self.speed) * 1.1 + 5
|
||||||
dx *= speed
|
dx *= speed
|
||||||
dy *= speed
|
dy *= speed
|
||||||
dz *= speed
|
dz *= speed
|
||||||
|
|
|
@ -242,8 +242,7 @@
|
||||||
"radius": 25559,
|
"radius": 25559,
|
||||||
"mass": 8.6810e+25,
|
"mass": 8.6810e+25,
|
||||||
"z": "19.23 * AU",
|
"z": "19.23 * AU",
|
||||||
"pitch": -90,
|
"pitch": 7.77,
|
||||||
"yaw": 97.77,
|
|
||||||
"rotation": -62064,
|
"rotation": -62064,
|
||||||
"orbit_distance": "6 * AU",
|
"orbit_distance": "6 * AU",
|
||||||
"ring": {
|
"ring": {
|
||||||
|
@ -267,6 +266,7 @@
|
||||||
},
|
},
|
||||||
"sky": {
|
"sky": {
|
||||||
"texture": "sky.jpg",
|
"texture": "sky.jpg",
|
||||||
|
"rotation": 0,
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"lighting": false,
|
"lighting": false,
|
||||||
"radius": 305000000,
|
"radius": 305000000,
|
||||||
|
|
|
@ -143,7 +143,8 @@ def load_world(file):
|
||||||
if not cheap:
|
if not cheap:
|
||||||
atmosphere_id = compile(disk, radius, radius + size, 30, atm_texture)
|
atmosphere_id = compile(disk, radius, radius + size, 30, atm_texture)
|
||||||
|
|
||||||
object = type(object_id, (x, y, z), (pitch, yaw, roll), rotation_angle=360 / (rotation + .0),
|
theta = 360 / (rotation + .0) if rotation else 0
|
||||||
|
object = type(object_id, (x, y, z), (pitch, yaw, roll), rotation_angle=theta,
|
||||||
atmosphere=atmosphere_id, cloudmap=cloudmap_id, background=background, **params)
|
atmosphere=atmosphere_id, cloudmap=cloudmap_id, background=background, **params)
|
||||||
world.tracker.append(object)
|
world.tracker.append(object)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue