Hi
This might be quite hard for me to explain, so bare with me.
First I will try to explain what I have got going on in my project. I have a ship parent called ‘Player’ which has a ridigbody on it and can be controlled by a constant force. The player can customize the ship by adding square modules to it, which have the prefix ‘Mod_’. These modules are in a group called ‘Modules’ that is a child of the ‘Player’, so that they can be controlled by the constant force as well.
This picture is after the ship has been customized, notice the individual modules:
I wish for these modules to have colliders on them, so the ship can bump into things etc. I have tried putting box colliders on each individual module. This works in terms of colliding with things. But it seems to interfere with the ridigbody, and how the ship moves around. It makes it much slower and more unpredictable when more than 1 collider is applied to the ship.
I think this is because the colliders on each modules are hitting each other, effecting the movement of the ship. I have tried making it so the modules cannot collide with each other on the collision matrix, but that made no difference.
Its seems the only solution would be to have 1 collider for the whole ship, that works out what the overall mesh looks like and generates one around it.
Is this possible to do? As I know you can use mesh colliders for a single mesh, but can you do it so it generates one to go around multiple meshes within a parent?
Also if you have any other ideas on a solution that would be great!
Thanks for your time reading this hefty passage of text. If you are struggling to understand what I am talking about, just say and I will try to explain further ![]()
