How To Add Custom Collision To Meshes In Unreal Engine 4/5 (Tutorial)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys and welcome back to another animation 4 and 5 tutorial so in today's video it's gonna be a nice quick and simple one in which we're just gonna be adding Custom Collision to our meshes inside of Unreal Engine so I say this is a very quick and easy one to do so let's get right into it so as you can see here I have this static mesh imported which I've got from Quicks or Mega scans which I'll leave a link in the description down below and on screen now to how you can use Quick within your projects what we're going to do is if I hit play you can see we have this asset here however there's absolutely no Collision on it I can just run straight through so obviously this isn't what we want we're going to want Collision for this quick and simple way to do this is me to open up the static mesh editor so essentially find where your asset is and double click to open it up and it should take you to this window here let me move on to the correct monitor it should take you here all we're going to do in here is you should automatically have convex decomposition in the bottom right if you don't we can do is go up to window up at the top and then just take convex decomposition and this is going to allow us to add in our collision by default you'll have a whole count of 4 16 Max quartz and 100 000 hole Precision you can press apply and see what that is going to look like for you now you should see we have these green lines here which is the Collision boundaries so for me this is actually going to be pretty much perfect what I'm going to do is save this minimize this and then we'll hit play to test it so you can see now if I was going to this we actually have Collision we can't just walk straight through it however I can still go into this underpass here we have the Collision where we need it to be so now I wasn't actually expecting that to be that perfect straight off the bat because sometimes it's not but for me as you can see it clearly is and if you wanted it to be even more close so you wanted to be even closer so maybe this middle bit here didn't have the right Collision on it you can just increase the whole Precision to maybe say 2000 press apply and you'll notice the green lines are now going to be even closer to the edge of the mesh so again now it's kind of just going from that corner to that corner but even closer you can have it go straight down like this so let's say even just go straight up to 500 000. press apply and we'll see this is again going to be even better and this is basically the whole principle of it we're just going to be changing the whole Precision or just all of these different things down here to be able to get a better collagen boundary for us and again you can obviously increase all of these as well to whatever values you liked we'll press apply change all of these and we're going to be getting the Collision here for us now sometimes this might not work so if you need to be really close really precise and this still isn't getting it as close as you want it to be what you can do is we're just going to find on here where we have the Collision complexity if you were to change it from Project default to use complex Collision as simple and save that you can see we have this here now so essentially the kind of perfectly White Lines is going to be the collision and that's essentially going into every single versity here so this really isn't necessary for the majority of things you're not going to want to do this for the majority of things because it'll be very intensive because obviously we don't need the Collision to be going individually into all of these little nooks and crannies here because the player is not going to be able to get in here anyway because of how big the player is you just need a line down here like the green line so those are the differences really the white line is the really really complex Collision the green line is the more basic one we're obviously going to want the green one so I'll just change that back to project default I'm going to be using the green we'll close this and again you can see this is the Collision that we've got working for us but I think that'll be it for this video as we've done everything we want to do what we've done is we've just set up the Collision onto our static mesh which we imported because again obviously we imported it it had no Collision but now it does it has the perfect amount which we want so thanks so much for watching this video I hope you enjoyed it and I hope you found it helpful and if you did please make sure to like subscribe down below as it really does help me in the channel out a lot once again thanks so much for watching and I'll see in the next one [Music]
Info
Channel: Matt Aspland
Views: 12,098
Rating: undefined out of 5
Keywords: ue4, unreal engine 4, unreal engine, tutorial, ue4 tutorial, unreal engine 4 tutorial, how to make a game, how to, blender, unity, games design, ue5, unreal engine 5, unreal engine 5 tutorial, ue5 tutorial, collision, custom, generate, add, convex, custom collision, ue4 collision, ue5 collision, static, mesh, meshes, setting up, enable
Id: RFHViHCGdoE
Channel Id: undefined
Length: 4min 2sec (242 seconds)
Published: Wed Dec 14 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.