From f3ef56dafa5594673ecbb285e34b76a94bdb87e2 Mon Sep 17 00:00:00 2001 From: "Leandro (Cerberus1746) Benedet Garcia" Date: Sun, 23 Mar 2025 19:00:04 -0300 Subject: [PATCH] Add clarifications to PhysicsDirectSpaceState docs on how to get their instance --- doc/classes/PhysicsDirectSpaceState2D.xml | 1 + doc/classes/PhysicsDirectSpaceState3D.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/doc/classes/PhysicsDirectSpaceState2D.xml b/doc/classes/PhysicsDirectSpaceState2D.xml index 4a3d0a2686c..ed7f6d299e9 100644 --- a/doc/classes/PhysicsDirectSpaceState2D.xml +++ b/doc/classes/PhysicsDirectSpaceState2D.xml @@ -5,6 +5,7 @@ Provides direct access to a physics space in the [PhysicsServer2D]. It's used mainly to do queries against objects and areas residing in a given space. + [b]Note:[/b] This class is not meant to be instantiated directly. Use [member World2D.direct_space_state] to get the world's physics 2D space state. $DOCS_URL/tutorials/physics/physics_introduction.html diff --git a/doc/classes/PhysicsDirectSpaceState3D.xml b/doc/classes/PhysicsDirectSpaceState3D.xml index fee04c463ba..76433a7d644 100644 --- a/doc/classes/PhysicsDirectSpaceState3D.xml +++ b/doc/classes/PhysicsDirectSpaceState3D.xml @@ -5,6 +5,7 @@ Provides direct access to a physics space in the [PhysicsServer3D]. It's used mainly to do queries against objects and areas residing in a given space. + [b]Note:[/b] This class is not meant to be instantiated directly. Use [member World3D.direct_space_state] to get the world's physics 3D space state. $DOCS_URL/tutorials/physics/physics_introduction.html