Jump to content

Recommended Posts

i'm working on a structural parts mod

each part has a hollow variant (a tube going straight down)

when i generate the collider, it doesn't include the holes, so nothing can go through the obviously hollow part

how do i fix this, or at least make a custom collider myself?

Link to comment
Share on other sites

4 hours ago, JadeOfMaar said:

@horrifiedbyeverything Unity is not fond of non-convex colliders. You'll need to make a radial group of box colliders for the walls of your tube. It's a manual job but an easy one. Make your group to contain only 12 boxes. 8 is too little and 24 is way too much.

@JadeOfMaar

if i understand correctly, i have to make four slab-shaped colliders (i'm focusing on a box part with a square tube in it) with the same thickness and position as the tube walls, right?

could you send an example image of what the hierarchy should look like in blender?

Link to comment
Share on other sites

5 minutes ago, horrifiedbyeverything said:

i have to make four slab-shaped colliders (i'm focusing on a box part with a square tube in it) with the same thickness and position as the tube walls, right?

Yep.

25 minutes ago, horrifiedbyeverything said:

could you send an example image of what the hierarchy should look like in blender?

I don't use Blender for most things so I can't help much. Simply, you have 5 objects. One has the "mesh renderer" component or whatever equivalent component that allows it to have a material and be visible in-game, and the other four do not have this and only have the collider component. The collider objects can all be children of the visible object but they don't have to be.

Link to comment
Share on other sites

On 3/17/2025 at 3:25 PM, JadeOfMaar said:

Yep.

I don't use Blender for most things so I can't help much. Simply, you have 5 objects. One has the "mesh renderer" component or whatever equivalent component that allows it to have a material and be visible in-game, and the other four do not have this and only have the collider component. The collider objects can all be children of the visible object but they don't have to be.

it works!!! jeb can go through the part now, as if it were a hollow tube

tysm! :3

Link to comment
Share on other sites

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