diff options
author | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2021-11-10 15:57:11 -0700 |
---|---|---|
committer | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2021-11-10 17:43:35 -0700 |
commit | c3ae7ddedd8526fff273237cb61ebb866a723af5 (patch) | |
tree | 9260e8a42f83ed33921f5de3f8be6bd5c9ccfa68 /servers/physics_3d/godot_soft_body_3d.cpp | |
parent | 3668312e786d0e06fee627e5255edef88710cc9b (diff) |
Add raycast options to hit when starting inside / hit back faces
Makes the results consistent for all shape types with options to set
the desired behavior.
Diffstat (limited to 'servers/physics_3d/godot_soft_body_3d.cpp')
-rw-r--r-- | servers/physics_3d/godot_soft_body_3d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/physics_3d/godot_soft_body_3d.cpp b/servers/physics_3d/godot_soft_body_3d.cpp index 4b3e8cc0d9..3a55870f06 100644 --- a/servers/physics_3d/godot_soft_body_3d.cpp +++ b/servers/physics_3d/godot_soft_body_3d.cpp @@ -1300,7 +1300,7 @@ struct _SoftBodyIntersectSegmentInfo { } }; -bool GodotSoftBodyShape3D::intersect_segment(const Vector3 &p_begin, const Vector3 &p_end, Vector3 &r_result, Vector3 &r_normal) const { +bool GodotSoftBodyShape3D::intersect_segment(const Vector3 &p_begin, const Vector3 &p_end, Vector3 &r_result, Vector3 &r_normal, bool p_hit_back_faces) const { _SoftBodyIntersectSegmentInfo query_info; query_info.soft_body = soft_body; query_info.from = p_begin; |