From b0b1e55305190c5c7ae21bc733afaab8f03a99f0 Mon Sep 17 00:00:00 2001
From: Markus Sauermann <6299227+Sauermann@users.noreply.github.com>
Date: Fri, 8 Apr 2022 09:27:31 +0200
Subject: [PATCH] Add a note about collisions in different canvases.
(cherry picked from commit b9c91d620e829f2f4cea8037492ed6939e4aad87)
---
doc/classes/CollisionObject2D.xml | 1 +
1 file changed, 1 insertion(+)
diff --git a/doc/classes/CollisionObject2D.xml b/doc/classes/CollisionObject2D.xml
index 5c61103a1a0..ebd79a445ea 100644
--- a/doc/classes/CollisionObject2D.xml
+++ b/doc/classes/CollisionObject2D.xml
@@ -5,6 +5,7 @@
CollisionObject2D is the base class for 2D physics objects. It can hold any number of 2D collision [Shape2D]s. Each shape must be assigned to a [i]shape owner[/i]. The CollisionObject2D can have any number of shape owners. Shape owners are not nodes and do not appear in the editor, but are accessible through code using the [code]shape_owner_*[/code] methods.
+ [b]Note:[/b] Only collisions between objects within the same canvas ([Viewport] canvas or [CanvasLayer]) are supported. The behavior of collisions between objects in different canvases is undefined.