Stops the sky from rotating.

Also: asteroids go front when you move back. Uranus rotates about the right axis.
This commit is contained in:
Quantum 2013-11-01 12:19:18 -04:00
parent 4e51fdaff3
commit e0e1a619f0
3 changed files with 5 additions and 4 deletions

View file

@ -197,7 +197,7 @@ class Applet(pyglet.window.Window):
elif symbol == key.SPACE:
c = self.cam
dx, dy, dz = c.direction()
speed = self.speed * 1.1 + 5
speed = abs(self.speed) * 1.1 + 5
dx *= speed
dy *= speed
dz *= speed

View file

@ -242,8 +242,7 @@
"radius": 25559,
"mass": 8.6810e+25,
"z": "19.23 * AU",
"pitch": -90,
"yaw": 97.77,
"pitch": 7.77,
"rotation": -62064,
"orbit_distance": "6 * AU",
"ring": {
@ -267,6 +266,7 @@
},
"sky": {
"texture": "sky.jpg",
"rotation": 0,
"optional": true,
"lighting": false,
"radius": 305000000,

View file

@ -143,7 +143,8 @@ def load_world(file):
if not cheap:
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)
world.tracker.append(object)