Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Update non-allocating physics result objects docs to reflect intended usage.

Enzo Novoselic4c506532b8af
diff --git a/doc/classes/PhysicsCastMotionResult2D.xml b/doc/classes/PhysicsCastMotionResult2D.xml
index 5665522075c..f23f4996af5 100644
--- a/doc/classes/PhysicsCastMotionResult2D.xml
+++ b/doc/classes/PhysicsCastMotionResult2D.xml
@@ -5,6 +5,7 @@
</brief_description>
<description>
This class contains the safe and unsafe fractions computed by [method PhysicsDirectSpaceState2D.cast_motion_into].
+ [b]Note:[/b] For optimal performance results, it is recommended to create this object in advance, store it, and reuse it for every subsequent query.
</description>
<tutorials>
</tutorials>
diff --git a/doc/classes/PhysicsCastMotionResult3D.xml b/doc/classes/PhysicsCastMotionResult3D.xml
index 68b3a660248..eecb6276120 100644
--- a/doc/classes/PhysicsCastMotionResult3D.xml
+++ b/doc/classes/PhysicsCastMotionResult3D.xml
@@ -5,6 +5,7 @@
</brief_description>
<description>
This class contains the safe and unsafe fractions computed by [method PhysicsDirectSpaceState3D.cast_motion_into].
+ [b]Note:[/b] For optimal performance results, it is recommended to create this object in advance, store it, and reuse it for every subsequent query.
</description>
<tutorials>
</tutorials>
diff --git a/doc/classes/PhysicsCollideShapeResult2D.xml b/doc/classes/PhysicsCollideShapeResult2D.xml
index 9ac9b8db49f..2d67546446b 100644
--- a/doc/classes/PhysicsCollideShapeResult2D.xml
+++ b/doc/classes/PhysicsCollideShapeResult2D.xml
@@ -6,6 +6,7 @@
<description>
This class contains the contact points computed by [method PhysicsDirectSpaceState2D.collide_shape_into].
Each collision is represented as a pair of points: one on the query shape and one on the colliding shape.
+ [b]Note:[/b] For optimal performance results, it is recommended to create this object in advance, store it, and reuse it for every subsequent query.
</description>
<tutorials>
</tutorials>
diff --git a/doc/classes/PhysicsCollideShapeResult3D.xml b/doc/classes/PhysicsCollideShapeResult3D.xml
index 0fce4d2724e..7e1dcf0dc70 100644
--- a/doc/classes/PhysicsCollideShapeResult3D.xml
+++ b/doc/classes/PhysicsCollideShapeResult3D.xml
@@ -6,6 +6,7 @@
<description>
This class contains the contact points computed by [method PhysicsDirectSpaceState3D.collide_shape_into].
Each collision is represented as a pair of points: one on the query shape and one on the colliding shape.
+ [b]Note:[/b] For optimal performance results, it is recommended to create this object in advance, store it, and reuse it for every subsequent query.
</description>
<tutorials>
</tutorials>
diff --git a/doc/classes/PhysicsGetRestInfoResult2D.xml b/doc/classes/PhysicsGetRestInfoResult2D.xml
index 323fc0fa5b8..4e18c76d029 100644
--- a/doc/classes/PhysicsGetRestInfoResult2D.xml
+++ b/doc/classes/PhysicsGetRestInfoResult2D.xml
@@ -6,6 +6,7 @@
<description>
This class contains the collision data computed by [method PhysicsDirectSpaceState2D.get_rest_info_into].
If the shape collides with multiple objects, only the nearest collision is stored.
+ [b]Note:[/b] For optimal performance results, it is recommended to create this object in advance, store it, and reuse it for every subsequent query.
</description>
<tutorials>
</tutorials>
diff --git a/doc/classes/PhysicsGetRestInfoResult3D.xml b/doc/classes/PhysicsGetRestInfoResult3D.xml
index 0da2c88d487..eb35f3aa213 100644
--- a/doc/classes/PhysicsGetRestInfoResult3D.xml
+++ b/doc/classes/PhysicsGetRestInfoResult3D.xml
@@ -6,6 +6,7 @@
<description>
This class contains the collision data computed by [method PhysicsDirectSpaceState3D.get_rest_info_into].
If the shape collides with multiple objects, only the nearest collision is stored.
+ [b]Note:[/b] For optimal performance results, it is recommended to create this object in advance, store it, and reuse it for every subsequent query.
</description>
<tutorials>
</tutorials>
diff --git a/doc/classes/PhysicsIntersectPointResult2D.xml b/doc/classes/PhysicsIntersectPointResult2D.xml
index 1738d395669..b42fa5f85da 100644
--- a/doc/classes/PhysicsIntersectPointResult2D.xml
+++ b/doc/classes/PhysicsIntersectPointResult2D.xml
@@ -6,6 +6,7 @@
<description>
This class contains the intersection information produced by [method PhysicsDirectSpaceState2D.intersect_point_into].
It stores up to a user-defined number of overlapping shapes.
+ [b]Note:[/b] For optimal performance results, it is recommended to create this object in advance, store it, and reuse it for every subsequent query.
</description>
<tutorials>
</tutorials>
diff --git a/doc/classes/PhysicsIntersectPointResult3D.xml b/doc/classes/PhysicsIntersectPointResult3D.xml
index 5caa0d60387..b766e4da5cd 100644
--- a/doc/classes/PhysicsIntersectPointResult3D.xml
+++ b/doc/classes/PhysicsIntersectPointResult3D.xml
@@ -6,6 +6,7 @@
<description>
This class contains the intersection information produced by [method PhysicsDirectSpaceState3D.intersect_point_into].
It stores up to a user-defined number of overlapping shapes.
+ [b]Note:[/b] For optimal performance results, it is recommended to create this object in advance, store it, and reuse it for every subsequent query.
</description>
<tutorials>
</tutorials>
diff --git a/doc/classes/PhysicsIntersectRayResult2D.xml b/doc/classes/PhysicsIntersectRayResult2D.xml
index 443ed2654a7..0f236b20991 100644
--- a/doc/classes/PhysicsIntersectRayResult2D.xml
+++ b/doc/classes/PhysicsIntersectRayResult2D.xml
@@ -6,6 +6,7 @@
<description>
This object contains the intersection information produced by [method PhysicsDirectSpaceState2D.intersect_ray_into].
After calling [method PhysicsDirectSpaceState2D.intersect_ray_into], the fields of this object will be populated with the hit information if the ray intersects a shape. If no intersection occurred, the values remain unchanged from the previous state.
+ [b]Note:[/b] For optimal performance results, it is recommended to create this object in advance, store it, and reuse it for every subsequent query.
</description>
<tutorials>
</tutorials>
diff --git a/doc/classes/PhysicsIntersectRayResult3D.xml b/doc/classes/PhysicsIntersectRayResult3D.xml
index 7d8193f537e..4ab86e5b815 100644
--- a/doc/classes/PhysicsIntersectRayResult3D.xml
+++ b/doc/classes/PhysicsIntersectRayResult3D.xml
@@ -6,6 +6,7 @@
<description>
This object contains the intersection information produced by [method PhysicsDirectSpaceState3D.intersect_ray_into].
After calling [method PhysicsDirectSpaceState3D.intersect_ray_into], the fields of this object will be populated with the hit information if the ray intersects a shape. If no intersection occurred, the values remain unchanged from the previous state.
+ [b]Note:[/b] For optimal performance results, it is recommended to create this object in advance, store it, and reuse it for every subsequent query.
</description>
<tutorials>
</tutorials>
diff --git a/doc/classes/PhysicsIntersectShapeResult2D.xml b/doc/classes/PhysicsIntersectShapeResult2D.xml
index bda5fd22db1..cb3988823cd 100644
--- a/doc/classes/PhysicsIntersectShapeResult2D.xml
+++ b/doc/classes/PhysicsIntersectShapeResult2D.xml
@@ -6,6 +6,7 @@
<description>
This class contains the intersection information produced by [method PhysicsDirectSpaceState2D.intersect_shape_into].
It can store multiple intersections, up to a user-defined maximum.
+ [b]Note:[/b] For optimal performance results, it is recommended to create this object in advance, store it, and reuse it for every subsequent query.
</description>
<tutorials>
</tutorials>
diff --git a/doc/classes/PhysicsIntersectShapeResult3D.xml b/doc/classes/PhysicsIntersectShapeResult3D.xml
index a571d02e68a..05a84d8dfda 100644
--- a/doc/classes/PhysicsIntersectShapeResult3D.xml
+++ b/doc/classes/PhysicsIntersectShapeResult3D.xml
@@ -6,6 +6,7 @@
<description>
This class contains the intersection information produced by [method PhysicsDirectSpaceState3D.intersect_shape_into].
It can store multiple intersections, up to a user-defined maximum.
+ [b]Note:[/b] For optimal performance results, it is recommended to create this object in advance, store it, and reuse it for every subsequent query.
</description>
<tutorials>
</tutorials>
diff --git a/doc/classes/PhysicsPointQueryParameters2D.xml b/doc/classes/PhysicsPointQueryParameters2D.xml
index 88d03a42f9d..07c9d72133a 100644
--- a/doc/classes/PhysicsPointQueryParameters2D.xml
+++ b/doc/classes/PhysicsPointQueryParameters2D.xml
@@ -5,6 +5,7 @@
</brief_description>
<description>
By changing various properties of this object, such as the point position, you can configure the parameters for [method PhysicsDirectSpaceState2D.intersect_point].
+ [b]Note:[/b] For optimal performance results, it is recommended to create this object in advance, store it, and reuse it for every subsequent query.
</description>
<tutorials>
</tutorials>
diff --git a/doc/classes/PhysicsPointQueryParameters3D.xml b/doc/classes/PhysicsPointQueryParameters3D.xml
index 133afe252f8..a11f888c085 100644
--- a/doc/classes/PhysicsPointQueryParameters3D.xml
+++ b/doc/classes/PhysicsPointQueryParameters3D.xml
@@ -5,6 +5,7 @@
</brief_description>
<description>
By changing various properties of this object, such as the point position, you can configure the parameters for [method PhysicsDirectSpaceState3D.intersect_point].
+ [b]Note:[/b] For optimal performance results, it is recommended to create this object in advance, store it, and reuse it for every subsequent query.
</description>
<tutorials>
</tutorials>
diff --git a/doc/classes/PhysicsRayQueryParameters2D.xml b/doc/classes/PhysicsRayQueryParameters2D.xml
index e7366261b9e..c888f2fb4bd 100644
--- a/doc/classes/PhysicsRayQueryParameters2D.xml
+++ b/doc/classes/PhysicsRayQueryParameters2D.xml
@@ -5,6 +5,7 @@
</brief_description>
<description>
By changing various properties of this object, such as the ray position, you can configure the parameters for [method PhysicsDirectSpaceState2D.intersect_ray].
+ [b]Note:[/b] For optimal performance results, it is recommended to create this object in advance, store it, and reuse it for every subsequent query.
</description>
<tutorials>
</tutorials>
diff --git a/doc/classes/PhysicsRayQueryParameters3D.xml b/doc/classes/PhysicsRayQueryParameters3D.xml
index 88611445753..ab593d1c400 100644
--- a/doc/classes/PhysicsRayQueryParameters3D.xml
+++ b/doc/classes/PhysicsRayQueryParameters3D.xml
@@ -5,6 +5,7 @@
</brief_description>
<description>
By changing various properties of this object, such as the ray position, you can configure the parameters for [method PhysicsDirectSpaceState3D.intersect_ray].
+ [b]Note:[/b] For optimal performance results, it is recommended to create this object in advance, store it, and reuse it for every subsequent query.
</description>
<tutorials>
</tutorials>
diff --git a/doc/classes/PhysicsShapeQueryParameters2D.xml b/doc/classes/PhysicsShapeQueryParameters2D.xml
index 32a67647b77..fc257ce27d6 100644
--- a/doc/classes/PhysicsShapeQueryParameters2D.xml
+++ b/doc/classes/PhysicsShapeQueryParameters2D.xml
@@ -5,6 +5,7 @@
</brief_description>
<description>
By changing various properties of this object, such as the shape, you can configure the parameters for [PhysicsDirectSpaceState2D]'s methods.
+ [b]Note:[/b] For optimal performance results, it is recommended to create this object in advance, store it, and reuse it for every subsequent query.
</description>
<tutorials>
</tutorials>
diff --git a/doc/classes/PhysicsShapeQueryParameters3D.xml b/doc/classes/PhysicsShapeQueryParameters3D.xml
index b51842bc153..3ca62f77f71 100644
--- a/doc/classes/PhysicsShapeQueryParameters3D.xml
+++ b/doc/classes/PhysicsShapeQueryParameters3D.xml
@@ -5,6 +5,7 @@
</brief_description>
<description>
By changing various properties of this object, such as the shape, you can configure the parameters for [PhysicsDirectSpaceState3D]'s methods.
+ [b]Note:[/b] For optimal performance results, it is recommended to create this object in advance, store it, and reuse it for every subsequent query.
</description>
<tutorials>
</tutorials>
diff --git a/doc/classes/PhysicsTestMotionParameters2D.xml b/doc/classes/PhysicsTestMotionParameters2D.xml
index b410cd66079..319a0f25222 100644
--- a/doc/classes/PhysicsTestMotionParameters2D.xml
+++ b/doc/classes/PhysicsTestMotionParameters2D.xml
@@ -5,6 +5,7 @@
</brief_description>
<description>
By changing various properties of this object, such as the motion, you can configure the parameters for [method PhysicsServer2D.body_test_motion].
+ [b]Note:[/b] For optimal performance results, it is recommended to create this object in advance, store it, and reuse it for every subsequent query.
</description>
<tutorials>
</tutorials>
diff --git a/doc/classes/PhysicsTestMotionParameters3D.xml b/doc/classes/PhysicsTestMotionParameters3D.xml
index a1e854be11e..782a38ab3d7 100644
--- a/doc/classes/PhysicsTestMotionParameters3D.xml
+++ b/doc/classes/PhysicsTestMotionParameters3D.xml
@@ -5,6 +5,7 @@
</brief_description>
<description>
By changing various properties of this object, such as the motion, you can configure the parameters for [method PhysicsServer3D.body_test_motion].
+ [b]Note:[/b] For optimal performance results, it is recommended to create this object in advance, store it, and reuse it for every subsequent query.
</description>
<tutorials>
</tutorials>
diff --git a/doc/classes/PhysicsTestMotionResult2D.xml b/doc/classes/PhysicsTestMotionResult2D.xml
index 404b727ecda..f892f7de6d6 100644
--- a/doc/classes/PhysicsTestMotionResult2D.xml
+++ b/doc/classes/PhysicsTestMotionResult2D.xml
@@ -5,6 +5,7 @@
</brief_description>
<description>
Describes the motion and collision result from [method PhysicsServer2D.body_test_motion].
+ [b]Note:[/b] For optimal performance results, it is recommended to create this object in advance, store it, and reuse it for every subsequent query.
</description>
<tutorials>
</tutorials>
diff --git a/doc/classes/PhysicsTestMotionResult3D.xml b/doc/classes/PhysicsTestMotionResult3D.xml
index e1f771d0633..588fcc357e7 100644
--- a/doc/classes/PhysicsTestMotionResult3D.xml
+++ b/doc/classes/PhysicsTestMotionResult3D.xml
@@ -5,6 +5,7 @@
</brief_description>
<description>
Describes the motion and collision result from [method PhysicsServer3D.body_test_motion].
+ [b]Note:[/b] For optimal performance results, it is recommended to create this object in advance, store it, and reuse it for every subsequent query.
</description>
<tutorials>
</tutorials>