Special collision for unique game idea

Godot Version

Godot 4

Question

I need a charakter that has 2 diffrent hitboxes that can detect diffrent collisionlayers. This is needed since for the gameidea to work I need a part of the charakter to interact with one collision layer an other part of the charakter to collide with an other layer. I would like to iplement it using the existing systems in godot for optimising reasons. (The problem lies in the fact that the collision layer is choosen in the charakter object and not the hitbox).

You can add a Area2D as character’s subnode, then you can set another collisionshape and collision layer.

By the way, if you have a complex collision system, you can add more than one Area2D as it’s subnode to differ those collision parts.:sunglasses:

1 Like