We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 08be1b7 + 491fb26 commit ca17967Copy full SHA for ca17967
3d/physics_tests/utils/rigidbody_ground_check.gd
@@ -44,4 +44,3 @@ func ground_check():
44
_is_on_floor = true
45
else:
46
_is_on_floor = false
47
-
3d/waypoints/waypoint.gd
@@ -23,6 +23,9 @@ func _ready() -> void:
23
24
25
func _process(_delta):
26
+ if not camera.current:
27
+ # If the camera we have isn't the current one, get the current camera.
28
+ camera = get_viewport().get_camera()
29
var parent_translation = parent.global_transform.origin
30
var camera_transform = camera.global_transform
31
var camera_translation = camera_transform.origin
0 commit comments