Jump to content

[SOLVED] How to make collision mesh for cargo bay (or any other hollow part)?


Recommended Posts

Hello great modding comunity!

At first let me thank you for all your amazing work, which makes KSP such a great experience. It even inspired me to try to fabricate some own parts, but as you all already guessed, my enthusiasm and work were soon confronted with problem I am unable to solve alone. And thus I turn to you with plea for help.

My vision is to create parts for construction of cargo (space)plane. I don't want animated cargo bay like space shuttle had, just cargo deck like transportation planes have. I am absolute begginer with almost no knoledge. But thankfully this forum and youtube is full of very helpful guides. I managed to model and export part into KSP, everything to my liking. But I don't know how to handle collider mesh for hollow object when it must be convex. I've tried three aproaches, but niether one works:

1. I made standard convex mesh collider and allowed collision in part.cfg. I still can't place stuff inside.

2. I made U shaped mesh collider for floor and sides (so I can attach wings), but Unity makes it full (convex), so it takes more than half of my cargo bay.

3. I made mesh collider just for floor part. It sort of "works" but I cant attach wings on side of plane, just on the lowest part where collider is.

You can find very illustrative images of my problem in my dropbox here: https://www.dropbox.com/sh/6o7b4oquo0vgpqr/AAC9lK5V1NJGE2U67Q7m9j4Qa

If someone of you would be so kind and explained me, how to make it functional and in correct way I would be very grateful.

:)

Jenda

P.S.: Sorry for grammar and typos, English is not my native tongue.

Edited by Jenda
Link to comment
Share on other sites

Here you go a wire frame of a cargo bay just finished, each color is a separate part, this allows you to create a space in the middle, it starts as one part then it is cut up to create what you see in the image, this is then imported into unity and has colliders fitted to all the parts, do note however that you should use simple primitive colliders as much as possible, it helps avoid kraken attacks, but its not really necessary, you can use convex colliders if you wish, in this case the doors floor, and center of the end panels are box colliders everything else would be a convex mesh collider

Ukksu1v.png

Link to comment
Share on other sites

Thank you, dear sir! You saved my day. Your instructions were easy to follow even for begginer like me. Thanks to you my effort finally brought results.

r6ANNl0.jpg

Next time I need to choose shape for my parts more carefuly. Boxes and curves don't work together very good. :huh:

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...