From 1a481c819160eff5bc4d5dc77bfb9e2f38bceef9 Mon Sep 17 00:00:00 2001 From: fabriceci Date: Mon, 30 Aug 2021 23:47:48 +0200 Subject: Change platform detection by allowing select layers by type (wall or floor) --- doc/classes/CharacterBody2D.xml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'doc/classes') diff --git a/doc/classes/CharacterBody2D.xml b/doc/classes/CharacterBody2D.xml index e5f60541b9..71e6eeab5a 100644 --- a/doc/classes/CharacterBody2D.xml +++ b/doc/classes/CharacterBody2D.xml @@ -152,8 +152,11 @@ Sets the motion mode which defines the behaviour of [method move_and_slide]. See [enum MotionMode] constants for available modes. - - Collision layers that will be excluded for detecting bodies that will act as moving platforms to be followed by the [CharacterBody2D]. By default, all touching bodies are detected and propagate their velocity. You can add excluded layers to ignore bodies that are contained in these layers. + + Collision layers that will be included for detecting floor bodies that will act as moving platforms to be followed by the [CharacterBody2D]. By default, all floor bodies are detected and propagate their velocity. + + + Collision layers that will be included for detecting wall bodies that will act as moving platforms to be followed by the [CharacterBody2D]. By default, all wall bodies are ignored. If [code]true[/code], during a jump against the ceiling, the body will slide, if [code]false[/code] it will be stopped and will fall vertically. -- cgit v1.2.3