as i come from unity im used of using 'tags' to set objects like 'wood' 'metal' etc. as i understand in godot this is done by using 'groups' . could someone give a bit more explanation on how this works? for example i want to use the groups to play different sounds and effects depending on colliders.
Have you read this? https://docs.godotengine.org/en/stable/tutorials/scripting/groups.html
DaveTheCoder yes, but i find it confusing
cybereality do i really need to call nodes in group? ideally i would like to do something like> if > collider = 'wood'(or wathever groupname) > do something
On the far right, next to Inspector, click Node, then next to Signals, click Groups. You can add whatever groups you want to each object. Then to get the groups, you call get_nodes_in_group() and do what you want with the list.
You can use is_in_group() to check if a node is in a group:
if my_node.is_in_group("wood"): # do something
If this code is in the script of the node you want to check, then use:
if is_in_group("wood"): # do something
https://docs.godotengine.org/en/stable/classes/class_node.html#class-node-method-is-in-group