[Godot] Area3D's with ConcavePolygonShape3D shapes causes unintentional emission of "body_entered" signal when body exiting area
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 28/100
調査の方向性
This is a 3D physics/area-signal bug in the engine (Area3D + ConcavePolygonShape3D / trimesh), with an MRP zip and a linked Godot issue. Start from how Area3D emits body_entered versus body_exited for concave shapes, and compare convex vs trimesh collision paths. Done means the extra body_entered on exit no longer fires in the MRP without breaking other area signals. This is engine-core work, not a first-timer patch.
索引モデルが issue の本文から書いたものです。
説明
Tested versions
Reproduced in Godot 4.3 stable
Known Issue in Godot 4.x
https://github.com/godotengine/godot/issues/80633
System information
Windows 10, Godot 4.3 stable
Issue description
It seems like an Area3D with a collision shape of a ConcavePolygonShape3D emits it's body_entered signal when a body exits it. This issue was tested with a prism shape and also a basic cube shape. See below for more specifics.
Steps to reproduce
Scene structure:
As you can see the Area3D node's CollisionShape3D has a ConcavePolygonShape3D.
The ConcavePolygonShape3D was created from a MeshInstance3D PrismMesh shape.
The ConcavePolygonShape3D shape was created in these steps:
- Mesh (top button next to Transform and View)
- Create Collision Shape
- Collision Shape Placement: Static Body Child, Collision Shape Type: Trimesh
- Create
- Drag the newly formed CollisionShape3D under the Area3D node (the CollisionShape3D in the picture is this one)
No other settings were altered on CollisionShape3D or the ConcavePolygonShape3D.
Script of the Area3D:
extends Area3D
func _ready() -> void:
body_entered.connect(_on_body_entered)
func _on_body_entered(body: Node3D) -> void:
print(self)
The script's function is to print itself once when body_entered gets emitted.
In additon, no other signal is connected to the Area3D.
Result of entering the Area3D in-game:
As you can see, it printed once.
Result of exiting the Area3D in-game:
It appears to emit the body_entered signal after the player leaves the area.
Minimal reproduction project (MRP)
- 主要言語
- C++
- スター
- 6.1k
- フォーク
- 337
- 平均マージ
- 3日 6時間
- マージ済み PR(30日)
- 48
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Redot-Engine/redot-engine のほかの issue
-
Handle stateful audio effects when a bus channel becomes inactive対応中かも @GeneralProtectionFault が 2 日前に担当しました。 オープン
Redot-Engine/redot-engine#1584 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
bug usability
難易度 3/5 1〜2日 初心者へのやさしさ 53/100
Redot-Engine/redot-engine#1583 ·
メンテナーはふだん 1 日以内に返信
-
bug confirmed topic:3d topic:rendering
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
Redot-Engine/redot-engine#1568 ·
メンテナーはふだん 1 日以内に返信
-
bug enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 57/100
Redot-Engine/redot-engine#1559 ·
メンテナーはふだん 1 日以内に返信
-
bug topic:3d topic:editor usability
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
Redot-Engine/redot-engine#1554 ·
メンテナーはふだん 1 日以内に返信
Redot-Engine/redot-engine の issue をすべて見る
似ている issue
-
ai_p2
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
ClickHouse/ClickHouse#130006 ·
メンテナーはふだん 1 日以内に返信
-
DepotMaintain: EN longer string moves the hint popup buttons out of reach // WpfGUI English Languageオープンclient: WpfGui module: depot question
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
MaaAssistantArknights/MaaAssistantArknights#19169 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
area: certificates bug outdated-version
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
RafaelNGP/xbox-cloud-gaming-ps5#381 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
apache/iceberg-cpp#1103 ·
メンテナーはふだん 2 日以内に返信