Enable raycast nodes by default

This commit is contained in:
Andrii Doroshenko (Xrayez) 2020-02-17 19:25:24 +02:00
parent 7b7b872d94
commit 11f367fe02
2 changed files with 2 additions and 4 deletions

View file

@ -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;

View file

@ -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;