AREA 3D Node Usage for a wall?

Godot Version

4.2.1 `

Question

` ı designed a wall with area 3d node and ı dont want this wall to be passed through so ı stuck . Actually ı have simple problem ı want a wall that makes a sound when my character touches it. Which node should ı use for it? ı decided to use area3d and when my caracter touches the wall,sound comes from the wall,but character passes through it… The other nodes dont seem appropriate for this situation.
Could you please take the time to answer my simple but confusing question?

I would use a combination of an Area3D node to detect touching the wall, but fill in the wall with a CollisionShape3D for collision. If you make them both the same size, though, the player will hit the wall before any collision with the Area3D can happen. To fix this, you could make the Area3D a little wider (1–0.1 pixels) so that the player can hit the Area3D to be detected, then hit the CollisionShape3D to stop movement. You could also shift the Area3D out from the wall a little bit rather than expanding the Area3D.

Actually ı filled the wall with a CollisionShape but ı am able to pass through it. It is the main problem :frowning: . Btw istn the collisionshape for setting the boundary of the wall. I checked a lot of things like layers etc . everything seem normal to me.
wall

Sorry, my bad. You will need a static body as well, with its own collision shape. The collision shape just provides a shape for all collision nodes, but only static bodies, character bodies, and rigid bodies actually hit things with stopping motion. Try my previous post, but add a StaticBody3D with a CollisionShape3D child slightly offset.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.