From bf1c38918951e9ff5f4c153d186a95d7acba9cc6 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 8 Jan 2025 17:48:48 +0100 Subject: [PATCH] Document only direct child nodes accounting for CollisionShape2D/3D Indirect children are currently ignored. --- tutorials/physics/collision_shapes_2d.rst | 7 ++++--- tutorials/physics/collision_shapes_3d.rst | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/tutorials/physics/collision_shapes_2d.rst b/tutorials/physics/collision_shapes_2d.rst index 16fb3e316c4..e2414407ac9 100644 --- a/tutorials/physics/collision_shapes_2d.rst +++ b/tutorials/physics/collision_shapes_2d.rst @@ -14,9 +14,10 @@ accuracy tradeoffs. You can define the shape of a :ref:`class_PhysicsBody2D` by adding one or more :ref:`CollisionShape2Ds ` or -:ref:`CollisionPolygon2Ds ` as child nodes. -Note that you must add a :ref:`class_Shape2D` *resource* to collision shape -nodes in the Inspector dock. +:ref:`CollisionPolygon2Ds ` as *direct* child nodes. +Indirect child nodes (i.e. children of child nodes) will be ignored and won't be +used as collision shapes. Also, note that you must add a :ref:`class_Shape2D` +*resource* to collision shape nodes in the Inspector dock. .. note:: diff --git a/tutorials/physics/collision_shapes_3d.rst b/tutorials/physics/collision_shapes_3d.rst index 0cb743e31ff..1bec234452e 100644 --- a/tutorials/physics/collision_shapes_3d.rst +++ b/tutorials/physics/collision_shapes_3d.rst @@ -13,9 +13,10 @@ Godot provides many kinds of collision shapes, with different performance and accuracy tradeoffs. You can define the shape of a :ref:`class_PhysicsBody3D` by adding one or more -:ref:`CollisionShape3Ds ` as child nodes. Note that you must -add a :ref:`class_Shape3D` *resource* to collision shape nodes in the Inspector -dock. +:ref:`CollisionShape3Ds ` as *direct* child nodes. +Indirect child nodes (i.e. children of child nodes) will be ignored and won't be +used as collision shapes. Also, note that you must add a :ref:`class_Shape3D` +*resource* to collision shape nodes in the Inspector dock. .. note::