From bb9c104695cfce56d70b5b84d52658a04d15460b Mon Sep 17 00:00:00 2001 From: Marcel Admiraal Date: Tue, 12 May 2020 12:19:16 +0100 Subject: [PATCH] Make it clear that PhysicsDirectSpaceState is only available from within _physics_process(). --- doc/classes/World2D.xml | 2 +- doc/classes/World3D.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/classes/World2D.xml b/doc/classes/World2D.xml index 2d8382b7e31..e66f21a0e73 100644 --- a/doc/classes/World2D.xml +++ b/doc/classes/World2D.xml @@ -16,7 +16,7 @@ The [RID] of this world's canvas resource. Used by the [RenderingServer] for 2D drawing. - The state of this world's physics space. This allows arbitrary querying for collision. + Direct access to the world's physics 2D space state. Used for querying current and potential collisions. Must only be accessed from the main thread within [code]_physics_process(delta)[/code]. The [RID] of this world's physics space resource. Used by the [PhysicsServer2D] for 2D physics, treating it as both a space and an area. diff --git a/doc/classes/World3D.xml b/doc/classes/World3D.xml index 4224a2a2c38..6d3b94794e5 100644 --- a/doc/classes/World3D.xml +++ b/doc/classes/World3D.xml @@ -15,7 +15,7 @@ - The World3D's physics direct space state, used for making various queries. Might be used only during [code]_physics_process[/code]. + Direct access to the world's physics 3D space state. Used for querying current and potential collisions. Must only be accessed from within [code]_physics_process(delta)[/code]. The World3D's [Environment].