Godot Version
Godot v4.3 with C# support
Question
` Hi, have a great day everyone.
My name is Kléber, I started learning Godot a few months ago and I’m liking it a lot
During my learning path I faced a challenge for which I didn’t quite find a solution yet, even after a while searching in the web.
In my project, I have a CharacterBody3D object, which has a given capsule collision shape to interact with the environment (floor, walls, etc.). Currently, I’m wanting to add in the same body another collision shape, using a different shape and also interacting physically with other bodies (not the environment)
So basically, to sum up, I’m wanting to have a node structure like this:
CharacterBody3D
|-- CollisionShapeEnvironment
|-- CollisionShapeOtherBodies
and I want:
CollisionShapeEnvironment: capsule shape, layer mask 0
CollisionShapeOtherBodies: box shape, layer mask 1
so, two different collision shapes, which interact in different physics layers, but both affect the CharacterBody3D.
I saw some other similar discussions in the web, where people suggested to use the second collision shape inside an Area3D or even another CharacterBody3D. I tried some things in this alike, but didn’t have any luck so far.
Does anyone knows how to tackle this type of challenge?
Thanks a lot everyone.
EDIT:
Just to elaborate a little bit more on my intent, I want my character to collide with other characters in the same way it collides with the floor and walls, but using a different collision shape instead. That’s why I was trying to have one shape with a layer mask of the environment, and another one with the layer mask of the characters.
`