I need help fixing gun clipping in a top down shooter

I’m new to this forum and I’m using Godot 4.5.

I’m working on a project for school and I decided to make a top-down shooter similar to CoD: Zombies. I’ve made a resource-based weapons system and I’m wondering if there’s any way I can stop the guns’ sprite from clipping into walls.

Thanks!

1 Like

Draw it over walls.

I’ve got the same issue, and still struggling with it

Is it 2D or 3D? Post some screenshots of your game.

My game is a 3d top-down game.

Change the weapon position if it collides with a wall.

1 Like

OK. Thank you for your pieces of advice :+1: . It seems to be the best solution, as this in not a FPS game, where it is easier to draw gun above the obstacle.