From 4f8d761be632a9d342655aa88a0745465b2177b8 Mon Sep 17 00:00:00 2001 From: PouleyKetchoupp Date: Thu, 30 Sep 2021 11:05:30 -0700 Subject: Fix physics glitch with TileMap moving platforms Added a parameter in test_body_motion to exclude attached objects from collision, used to avoid collision with all TileMap tiles with moving platform motion instead of just the one tile the character touches. Same changes made in 3D for consistency, and handling potential similar cases. --- doc/classes/PhysicsTestMotionParameters2D.xml | 3 +++ doc/classes/PhysicsTestMotionParameters3D.xml | 3 +++ 2 files changed, 6 insertions(+) (limited to 'doc/classes') diff --git a/doc/classes/PhysicsTestMotionParameters2D.xml b/doc/classes/PhysicsTestMotionParameters2D.xml index 7cea848039..46c1827b97 100644 --- a/doc/classes/PhysicsTestMotionParameters2D.xml +++ b/doc/classes/PhysicsTestMotionParameters2D.xml @@ -16,6 +16,9 @@ Optional array of body [RID] to exclude from collision. + + Optional array of object unique instance ID to exclude from collision. See [method Object.get_instance_id]. + Transform in global space where the motion should start. Usually set to [member Node2D.global_transform] for the current body's transform. diff --git a/doc/classes/PhysicsTestMotionParameters3D.xml b/doc/classes/PhysicsTestMotionParameters3D.xml index 07abbb1cb1..d66aee3ae6 100644 --- a/doc/classes/PhysicsTestMotionParameters3D.xml +++ b/doc/classes/PhysicsTestMotionParameters3D.xml @@ -16,6 +16,9 @@ Optional array of body [RID] to exclude from collision. + + Optional array of object unique instance ID to exclude from collision. See [method Object.get_instance_id]. + Transform in global space where the motion should start. Usually set to [member Node3D.global_transform] for the current body's transform. -- cgit v1.2.3