diff options
Diffstat (limited to 'scene/2d/ray_cast_2d.cpp')
| -rw-r--r-- | scene/2d/ray_cast_2d.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/2d/ray_cast_2d.cpp b/scene/2d/ray_cast_2d.cpp index 707b6da67d..50d437f78b 100644 --- a/scene/2d/ray_cast_2d.cpp +++ b/scene/2d/ray_cast_2d.cpp @@ -69,6 +69,7 @@ bool RayCast2D::get_collision_mask_bit(int p_bit) const { bool RayCast2D::is_colliding() const { return collided; } + Object *RayCast2D::get_collider() const { if (against.is_null()) return nullptr; @@ -79,9 +80,11 @@ Object *RayCast2D::get_collider() const { int RayCast2D::get_collider_shape() const { return against_shape; } + Vector2 RayCast2D::get_collision_point() const { return collision_point; } + Vector2 RayCast2D::get_collision_normal() const { return collision_normal; } |
