Jump to content

Can't get Collision to work on custom part


Recommended Posts

What's happening exactly? You've got convex selected, and the layer is set to default which is all correct for that kind of part. Doesn't look like you've gone over the 255 tri limit for mesh colliders, but try making a simpler object (less side, maybe 10 or 12) for the collider, or ditch the mesh and create an empty GO to apply a capsule collider to to see if that helps.

Link to comment
Share on other sites

Put it down to 'one of those things'. Glad you got it fixed :) Do look into making a simpler collider, though. They're a more resource hungry with higher tri-count, so the less you can get away with the better.

Link to comment
Share on other sites

I don't know why, but I erased the Unity project and started another blank one. I did everything the same and now it works.

Wow, strange. I've had something like that happen before, but with something else entirely (not a collision mesh, but I can't remember the details now). I suspect it's possible to have some corrupted settings somewhere, in something that Unity hides from view.

Do look into making a simpler collider, though. They're a more resource hungry with higher tri-count, so the less you can get away with the better.

Agreed on this. The "normal" way for Squad-made fuel tanks, is to have 24 sides for the model, with vertices aligned to the cardinal axes, with a collision mesh that is 12-sided, with the sides (instead of the vertices) aligned to the cardinal directions. You don't have to adhere to this, of course, but doing it this way pretty much ensures that things work the way you expect in the VAB/SPH.

The CPU usage for physics goes up with each additional polygon in the collision meshes.

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...