summaryrefslogtreecommitdiffstats
path: root/scene/3d/ray_cast_3d.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/3d/ray_cast_3d.cpp')
-rw-r--r--scene/3d/ray_cast_3d.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/3d/ray_cast_3d.cpp b/scene/3d/ray_cast_3d.cpp
index 7693906f6f..1b91e58f8f 100644
--- a/scene/3d/ray_cast_3d.cpp
+++ b/scene/3d/ray_cast_3d.cpp
@@ -71,6 +71,7 @@ bool RayCast3D::get_collision_mask_bit(int p_bit) const {
bool RayCast3D::is_colliding() const {
return collided;
}
+
Object *RayCast3D::get_collider() const {
if (against.is_null())
return nullptr;
@@ -81,9 +82,11 @@ Object *RayCast3D::get_collider() const {
int RayCast3D::get_collider_shape() const {
return against_shape;
}
+
Vector3 RayCast3D::get_collision_point() const {
return collision_point;
}
+
Vector3 RayCast3D::get_collision_normal() const {
return collision_normal;
}