fixed scene change bug
This commit is contained in:
1 parent
93857b958c
commit
a24b5058b2
2 files changed
+3
-4
No files matched your search
@@ -10,13 +10,9 @@ var _x_axis = Vector3(1, 0, 0)
|
||||
|
||||
func _ready():
|
||||
var cam_rot = camera.rotation_degrees
|
||||
print(cam_rot.y)
|
||||
_look_at_vec = _look_at_vec.rotated(Vector3(0, 1, 0), cam_rot.y * PI/180)
|
||||
print(_look_at_vec)
|
||||
print(cam_rot.x)
|
||||
_x_axis = _x_axis.rotated(Vector3(0, 1, 0), cam_rot.y * PI/180)
|
||||
_look_at_vec = _look_at_vec.rotated(_x_axis, cam_rot.x * PI/180)
|
||||
print(_look_at_vec)
|
||||
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
|
||||
Reference in new issue
Block a user