0 votes

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.

Godot version 3
in Engine by (12 points)

This is a tough one to explain, so I'll defer to the docs: https://docs.godotengine.org/en/stable/tutorials/physics/physics_introduction.html#collision-layers-and-masks

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: https://kidscancode.org/godot_recipes/3.x/g101/3d/101_3d_04/

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.