diff --git a/doc/classes/RayCast2D.xml b/doc/classes/RayCast2D.xml
index 16643b0a710..8d32ffcdc24 100644
--- a/doc/classes/RayCast2D.xml
+++ b/doc/classes/RayCast2D.xml
@@ -1,10 +1,10 @@
- A ray in 2D space, used to find the first [CollisionObject2D] it intersects.
+ A ray in 2D space, used to find the first collision object it intersects.
- A raycast represents a ray from its origin to its [member target_position] that finds the closest [CollisionObject2D] along its path, if it intersects any.
+ A raycast represents a ray from its origin to its [member target_position] that finds the closest object along its path, if it intersects any.
[RayCast2D] can ignore some objects by adding them to an exception list, by making its detection reporting ignore [Area2D]s ([member collide_with_areas]) or [PhysicsBody2D]s ([member collide_with_bodies]), or by configuring physics layers.
[RayCast2D] calculates intersection every physics frame, and it holds the result until the next physics frame. For an immediate raycast, or if you want to configure a [RayCast2D] multiple times within the same physics frame, use [method force_raycast_update].
To sweep over a region of 2D space, you can approximate the region with multiple [RayCast2D]s or use [ShapeCast2D].
@@ -17,7 +17,7 @@
- Adds a collision exception so the ray does not report collisions with the specified [CollisionObject2D] node.
+ Adds a collision exception so the ray does not report collisions with the specified [param node].
@@ -44,6 +44,7 @@
Returns the first object that the ray intersects, or [code]null[/code] if no object is intersecting the ray (i.e. [method is_colliding] returns [code]false[/code]).
+ [b]Note:[/b] This object is not guaranteed to be a [CollisionObject2D]. For example, if the ray intersects a [TileMapLayer], the method will return a [TileMapLayer] instance.
@@ -104,14 +105,14 @@
- Removes a collision exception so the ray does report collisions with the specified [CollisionObject2D] node.
+ Removes a collision exception so the ray can report collisions with the specified specified [param node].
- Removes a collision exception so the ray does report collisions with the specified [RID].
+ Removes a collision exception so the ray can report collisions with the specified [RID].
@@ -137,13 +138,13 @@
If [code]true[/code], collisions will be reported.
- If [code]true[/code], the parent node will be excluded from collision detection.
+ If [code]true[/code], this raycast will not report collisions with its parent node. This property only has an effect if the parent node is a [CollisionObject2D]. See also [method Node.get_parent] and [method add_exception].
If [code]true[/code], the ray will detect a hit when starting inside shapes. In this case the collision normal will be [code]Vector2(0, 0)[/code]. Does not affect concave polygon shapes.
- The ray's destination point, relative to the RayCast's [code]position[/code].
+ The ray's destination point, relative to this raycast's [member Node2D.position].
diff --git a/doc/classes/RayCast3D.xml b/doc/classes/RayCast3D.xml
index 8ede8bb4c3c..1040975c9be 100644
--- a/doc/classes/RayCast3D.xml
+++ b/doc/classes/RayCast3D.xml
@@ -1,7 +1,7 @@
- A ray in 3D space, used to find the first object it intersects.
+ A ray in 3D space, used to find the first collision object it intersects.
A raycast represents a ray from its origin to its [member target_position] that finds the closest object along its path, if it intersects any.
@@ -18,7 +18,7 @@
- Adds a collision exception so the ray does not report collisions with the specified [CollisionObject3D] node.
+ Adds a collision exception so the ray does not report collisions with the specified [param node].
@@ -112,14 +112,14 @@
- Removes a collision exception so the ray does report collisions with the specified [CollisionObject3D] node.
+ Removes a collision exception so the ray can report collisions with the specified [param node].
- Removes a collision exception so the ray does report collisions with the specified [RID].
+ Removes a collision exception so the ray can report collisions with the specified [RID].
@@ -152,7 +152,7 @@
If [code]true[/code], collisions will be reported.
- If [code]true[/code], collisions will be ignored for this RayCast3D's immediate parent.
+ If [code]true[/code], this raycast will not report collisions with its parent node. This property only has an effect if the parent node is a [CollisionObject3D]. See also [method Node.get_parent] and [method add_exception].
If [code]true[/code], the ray will hit back faces with concave polygon shapes with back face enabled or heightmap shapes.
@@ -161,7 +161,7 @@
If [code]true[/code], the ray 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 shapes with no volume like concave polygon or heightmap.
- The ray's destination point, relative to the RayCast's [code]position[/code].
+ The ray's destination point, relative to this raycast's [member Node3D.position].