![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | sharpsharp |
Hello, I didn’t found the answer of my question so here it is:
I have a KinematicBody (3d) which I place in my main scene and I duplicate It a couple time.
How to avoid collision between them ? They can move and I want them to avoid collision between every copy of this object.
There is no function for ignore collision for all object in the same group ?
I have to deal with the collision layer & mask ? But what if there is more than 32 of this object ?
Hope someone can help me.
This is a tough one to explain, so I’ll defer to the docs: Physics introduction — Godot Engine (stable) documentation in English
Yes, you will use layers and masks. Each ‘duplicate’ belongs in a layer, which essentially groups every object together (one layer, many objects). By grouping them together a mask can ignore the layer and the objects won’t collide with each other. The documentation explains this well. Perhaps this may also help: Using Areas :: Godot 3 Recipes
spaceyjase | 2023-01-23 17:15