Skip to content

Commit 9418d4b

Browse files
committed
Use Q and E for Y movements
1 parent acc34cb commit 9418d4b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

demosys/scene/camera.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ def __init__(self, fov=60, aspect=1.0, near=1, far=100):
3030
self.cam_up = Vector3([0.0, 1.0, 0.0])
3131
self.cam_right = Vector3([1.0, 0.0, 0.0])
3232
self.cam_dir = Vector3([0.0, 0.0, -1.0])
33+
# Yaw and Pitch
34+
self.yaw = 0
35+
self.pitch = 0
36+
3337
# World up vector
3438
self._up = Vector3([0.0, 1.0, 0.0])
3539
# Position movement states
@@ -70,6 +74,8 @@ def move_state(self, direction, activate):
7074
elif direction == DOWN:
7175
self._ydir = NEGATIVE if activate else STILL
7276

77+
# def rot_state(self, ):
78+
7379
@property
7480
def view_matrix(self):
7581
# Use separate time in camera so we can move it when the demo is paused

0 commit comments

Comments
 (0)