mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
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.
This commit is contained in:
@@ -24,6 +24,12 @@
|
||||
<member name="from" type="Vector3" setter="set_from" getter="get_from" default="Vector3(0, 0, 0)">
|
||||
The starting point of the ray being queried for, in global coordinates.
|
||||
</member>
|
||||
<member name="hit_back_faces" type="bool" setter="set_hit_back_faces" getter="is_hit_back_faces_enabled" default="true">
|
||||
If [code]true[/code], the query will hit back faces with concave polygon shapes with back face enabled or heightmap shapes.
|
||||
</member>
|
||||
<member name="hit_from_inside" type="bool" setter="set_hit_from_inside" getter="is_hit_from_inside_enabled" default="false">
|
||||
If [code]true[/code], the query will detect a hit when starting inside shapes. In this case the collision normal will be [code]Vector3(0, 0, 0)[/code]. Does not affect concave polygon shapes or heightmap shapes.
|
||||
</member>
|
||||
<member name="to" type="Vector3" setter="set_to" getter="get_to" default="Vector3(0, 0, 0)">
|
||||
The ending point of the ray being queried for, in global coordinates.
|
||||
</member>
|
||||
|
||||
Reference in New Issue
Block a user