[Godot] Area3D's with ConcavePolygonShape3D shapes causes unintentional emission of "body_entered" signal when body exiting area
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 28/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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)
- Lingua principale
- C++
- Stelle
- 6.1k
- Fork
- 337
- Merge medio
- 1g 13h
- PR unite (30g)
- 39
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Redot-Engine/redot-engine
-
bug needs testing usability
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
Redot-Engine/redot-engine#1514 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
bug confirmed topic:gdscript usability
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
Redot-Engine/redot-engine#1482 ·
I maintainer di solito rispondono entro 1 giorno
-
Cherry-Pick: Mesh LibraryForse già presa @DaveTheEggman l’ha presa 13 giorni fa. Apertacherrypick tracker
Redot-Engine/redot-engine#1473 · 2 assegnatari ·
I maintainer di solito rispondono entro 1 giorno
-
Support AtlasTexture regions in AnimatedTexture direct RID consumersForse già presa @DaveTheEggman l’ha presa 13 giorni fa. Aperta
Redot-Engine/redot-engine#1470 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
26.3.rc.2 – Editor UI – "Terrain Assets" dock lacks a tooltip and keyboard shortcutForse già presa @OldDev78 l’ha presa 12 giorni fa. Apertaconfirmed enhancement feature proposal topic:worldscape
Redot-Engine/redot-engine#1469 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Redot-Engine/redot-engine
Issue simili
-
[Cleanup] Include the public header in work_split.cppForse già presa @blozano-tt l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
tenstorrent/tt-metal#60850 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
beehive-lab/TornadoVM#1248 ·
I maintainer di solito rispondono entro 1 giorno
-
core: RAC_LLM_OPTIONS_DEFAULT.min_p disagrees with the IDL's annotated defaultForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertabug core p3
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
RunanywhereAI/runanywhere-sdks#1083 ·
I maintainer di solito rispondono entro 5 giorni
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
tesseract-ocr/tesseract#4653 ·
I maintainer di solito rispondono entro 1 giorno
-
area: docs eco: cpp good first issue help wanted lane: free-agent roadmap size: XS type: docs
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
arminazimi/evergreen#475 ·
I maintainer di solito rispondono entro 1 giorno