From be126bfd5555f5f4eab3738755aea3a2b47a7357 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Tue, 1 Sep 2020 18:54:13 +0200 Subject: [PATCH] Document RigidBodies in character mode never sleeping automatically See #7996. (cherry picked from commit 5fbf709ca22e0d8b7db885d96cd059e7c39528fa) --- doc/classes/RigidBody.xml | 1 + doc/classes/RigidBody2D.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/doc/classes/RigidBody.xml b/doc/classes/RigidBody.xml index e525ae00a7..973d33a396 100644 --- a/doc/classes/RigidBody.xml +++ b/doc/classes/RigidBody.xml @@ -160,6 +160,7 @@ If [code]true[/code], the body can enter sleep mode when there is no movement. See [member sleeping]. + [b]Note:[/b] A RigidBody3D will never enter sleep mode automatically if its [member mode] is [constant MODE_CHARACTER]. It can still be put to sleep manually by setting its [member sleeping] property to [code]true[/code]. If [code]true[/code], the RigidBody will emit signals when it collides with another RigidBody. See also [member contacts_reported]. diff --git a/doc/classes/RigidBody2D.xml b/doc/classes/RigidBody2D.xml index 3e93bb8e3a..b139541091 100644 --- a/doc/classes/RigidBody2D.xml +++ b/doc/classes/RigidBody2D.xml @@ -133,6 +133,7 @@ If [code]true[/code], the body can enter sleep mode when there is no movement. See [member sleeping]. + [b]Note:[/b] A RigidBody2D will never enter sleep mode automatically if its [member mode] is [constant MODE_CHARACTER]. It can still be put to sleep manually by setting its [member sleeping] property to [code]true[/code]. If [code]true[/code], the body will emit signals when it collides with another RigidBody2D. See also [member contacts_reported].