horrifiedbyeverything Posted March 17 Share Posted March 17 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? Quote Link to comment Share on other sites More sharing options...
JadeOfMaar Posted March 17 Share Posted March 17 @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. Quote Link to comment Share on other sites More sharing options...
horrifiedbyeverything Posted March 17 Author Share Posted March 17 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? Quote Link to comment Share on other sites More sharing options...
JadeOfMaar Posted March 17 Share Posted March 17 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. Quote Link to comment Share on other sites More sharing options...
horrifiedbyeverything Posted March 23 Author Share Posted March 23 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.