Compare commits
1 commit
3a635e9551
...
545102a139
| Author | SHA1 | Date | |
|---|---|---|---|
| 545102a139 |
1 changed files with 2 additions and 1 deletions
|
|
@ -11,6 +11,7 @@ func rotate_camera_y(y, delta):
|
|||
func rotate_camera_x(x, delta):
|
||||
$InnerGimbal.rotate_object_local(
|
||||
Vector3.RIGHT, x * rotation_speed * delta)
|
||||
$InnerGimbal.rotation.x = clamp($InnerGimbal.rotation.x,-0.8,0.7)
|
||||
|
||||
func _process(delta):
|
||||
# rotate outer gimbal around y axis
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue