Explorar o código

Merge pull request #36307 from Xrayez/raycast-enabled-true

Enable raycast nodes by default
Rémi Verschelde %!s(int64=5) %!d(string=hai) anos
pai
achega
34e011c8a5
Modificáronse 2 ficheiros con 2 adicións e 4 borrados
  1. 1 2
      scene/2d/ray_cast_2d.cpp
  2. 1 2
      scene/3d/ray_cast_3d.cpp

+ 1 - 2
scene/2d/ray_cast_2d.cpp

@@ -325,8 +325,7 @@ void RayCast2D::_bind_methods() {
 }
 }
 
 
 RayCast2D::RayCast2D() {
 RayCast2D::RayCast2D() {
-	enabled = false;
-
+	enabled = true;
 	collided = false;
 	collided = false;
 	against_shape = 0;
 	against_shape = 0;
 	collision_mask = 1;
 	collision_mask = 1;

+ 1 - 2
scene/3d/ray_cast_3d.cpp

@@ -383,8 +383,7 @@ void RayCast3D::_clear_debug_shape() {
 }
 }
 
 
 RayCast3D::RayCast3D() {
 RayCast3D::RayCast3D() {
-	enabled = false;
-
+	enabled = true;
 	collided = false;
 	collided = false;
 	against_shape = 0;
 	against_shape = 0;
 	collision_mask = 1;
 	collision_mask = 1;