How to make a Tank part 1 (unreal engine 5 Tutorial-Tank Setup)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello and welcome to another video about Android engine 5. this video will make a tank but make it move and make three tracks animate with each bump and follow the uh wheel movement also makes tracks look like they are moving and also implement the turning of the tank and replace and if we have time we will Implement shooting and turning the turret on aiming the gun now let's start this BMP I made before now I'll make a new uh vehicle new track vehicle let's choose the vehicle real difficult phone we underscore g72 tank we will use the Vigilante content only the 372 first let's make a new animation blueprint and open it and make sure the class settings we choose the vehicle anime animation instance and let's add we'll Handler mesh RF pose wheel controller and we are finished for now we do not need anything from this animation blueprint now let's go back to our tank blueprint here let's show the g72 and for the animation blueprint all 4072 foreign let's add the spring arm let me get 150 or 100 make it spring Army lens for 1500 or 12.50 and that camera now when the spring down let's check the phone rotation use control Point control rotation to make it rotate with the Mouse movement the camera reset the location and here let's start with turn right left and look up turn right left add control rotation you and here and control the rotation pitch let's command camera controls let's bring it here and choose Auto process player player zero to save the content of the level uh press this icon now we need to add a chaos wield vehicle movement because we have our vehicle has more than four wheels if if you have a vehicle with more than four wheels use the chaos wheeled vehicle component but if your vehicle is less than four four wheels and below you can use the the default vehicle component now uh what we need to set up the wheels let's see we have H wheels on each side but I will I add Wheels only for these wheels on the uh this this rocket the Drive rocket on the front one I will make them copy one of the wheel rotation because they will cause problems if we make them driven by the in a component now we need 12. 12 Wheels first we need to make another wheel let's make new wheel chaos vehicle wheel t72 wheel here let's make it affected by handbrake and by engine and let's add abs size I will set to 35 and then we will see if it's it's watching the size of the wheels of the tank Max Steel angle and effective way steering we do not need maximum race we will modify this later according to the situation foreign mesh to take the wheel name exactly now let's start with the left one it shows the g72 wheel and then we press the search or browse button to make it easier for us to add it next now let's paste the name and uh instead of copying it only change this number now three then it says foreign because we start with double number two now at 2011. I will pause the recording now and complete the other Wheels to keep the video short now after I finish the wheels now we add the controls for the throttle first move forward and move right here we need set Serato on put break input let's give it a multiplied by minus one because the break is the reverse of the money is the opposite of the throat and here here we need to go to the arcade controls where is the Arcade controls our case control set it as enabled then uh use your torque scaling I will choose 2.5 and we will test it that's it sets yo input now let's test sorry sorry for the inconvenience the another engine crashed on me again now Let's test it move forward doesn't work because we forgot to set the image to simulate physics Community physics and let's go to the physics asset uh select all bodies and delete then show all bones let's find the coke this one we need to make it multi-convex and this one maybe 32 and 128 or whatever you want you want you can make it uh a box or a rectangle Yeah but I this looks more accurate you need if you make like me you delete this physics asset because it will interfere with the movement of the vehicle the turret we will add a we will add a sphere collagen components because if we make it independent and simulate physics it will fall and at that time we will need to make physical animation and we do not need physical animation now let's leave the turret now maybe if you want to make them make a hit component for them you can't make them basically now let's make sure everything is simulate physics simulate it now Let's test again now let's test it turning what's very slow it does not move forward or record let's check what was wrong let's check I think we need to increase the torque but also we need to make a engine tool curve now at Time Zero the value will be zero and that time maybe let's make it take three seconds to get full torque now let's check now it's moving forward get backward turning now Let's uh animate the trucks and also we need to make this uh will rotate with the other Wheels now we need bone driven controller this one I will choose the source one is the wheel now let's start with the right or the left which one is yes then left left wheel The Source component is translation Z and the destination mode bone and the target bone is let's choose the thread left Wheel track two and translation only is it now we need to repeat this one for every wheel now I'll make the left wheel then pause the noise copy duplicate this duplicate six now we have six let's change now the left to L2 let's equal three and left track sorry here left track four and left wheel four and left wheel five and left track five here six left wheel six and left track six here we reach the seven wheel seven on this rock seven now let's connect this now I'll pause the video to complete the right Wheels now after we finished the uh wheels and trucks now let's make the sprocket Wheels fellow the rotation of or copy the rotation of another wheel copy rotation copy one we need four of these now we only need copy the rotation the bone now let's connect them first first one the source Bond uh for the right one I will choose wheel for left one I mean left wheel four on the target is left wheel one here also left wheel four the target is left wheel line same thing for the right Wheels I will choose the right wheel for to be the source the target will be now right wheel one and nine source [Music] well it will not now we need to connect the others now let's test let's see the results it's moving but now I think we need to make the wheels bigger increase the radius let's make it 45. now the track is moving up and down also the sprocket Wheels I think the torque is too much or you know uh yeah I would decrease it or I'll increase the weight of the vehicle your weight what is the mass let's make it two thousand now before we test let's let's uh make the track animation let's first comment now the track animation is these animations first we need to activate the offset V this is the logic for it it's already made by the Vigilante content it calculates the offset of the normals to give us the illusion that the track is moving forward or backward now to make your work quick custom event track animation now we need the mesh and set scalar parameter on material parameter name we need to all right so this thing exactly even with the capital or small letter offset V of search Maybe we parameter value I will get it from the vehicle speed get speed for the speed miles per hour let's comment on this truck animations now let's uh let's make them run on tick or truck attack animation let's make the spring arm smaller like 1000 to see the crack movement now let's go now tracks are moving they need a bit of adjustment oh so flipped I think the vehicle is too light let's make it heavier nice 3500 we to prevent it from rolling over or flipping increase the roll bar scaling to one now I will add the turrets controls again you play a play we need this the blueprint class to j72 tank blueprint we need the control rotation and the actor rotation here gets Ctrl rotation and get after rotation we need Delta rotation Delta Rotator Delta now break the rotator now the your turret your let's call it and they pitch gun pitch here we need the modify transform Bond you need two one for the turret and one for the gun no no uh this one let's make it for the church int do not really need translation you will need the rotation and scale here's the storage we need Geo Let's test it 45 should we go to the right we need first to complete this uh this one gun you don't need translation and do not need the scale add to existing break the rotation let's just fix the right one yes which is the right one what is the gum pitch clamp where to clamp the value between I think the real tank is gun depression is -5 and the deviation I think 25 degrees now let's test we need to first change the component space to of the gun to make it parent bone space and also the multiply the value by -1 now we'll be gone let's make it parent boy's face and the gun pitch let's multiply it here multiply them by -1 5. nice one degrees next distance no I think the George is moving weird I we need to also make it parents Bond space let's change here animation turret parents now it's moving no I want to First we will pause shift and F1 I want to eject or unprocess yeah it's working well it's because we ejected you know if we repeat it again uh no it's Error for another for the AAA Gun but uh when you get this error this means that the animation blueprint loaded before the tanker blueprint and for first for a small amount of time it couldn't load the blueprint but after the blueprint loaded it's resolved but you will get this error but to resolve this one you need to add a small delay here DNA for 0.2 seconds is enough Now where's the egg on let me delete it what did I put it here you go which meter is this one and the other one also here now let's test now we are moving now let's still still it's getting a problem because the animation blueprint loads before the uh before the tank blueprint I will make valid but valid note is better than the giving a delay and if it's not valid delay 4.2 seconds and go back to check if it's valid or not let me make it look better ugly now it starts still having a problem let's decrease the time make it point one still we have the same error let's make it more better than this one than this mesh what do we need is to take this valid note and put it here this one is better and will guarantee you will not have the this error again get the blueprint that's having the error and check if it is valid this will check if it's valid every time let's say this every time the animation upgrade this layer is like the Attic and The Irregular blueprint now let's start no there is no error to get rid of the error of this error this arrow is annoying you need to add a valid node before the values that you want to get from this blueprint I think the video is becoming long thank you for watching see you on the next video we will implement the shooting I uh I will implement the shooting on the this also or destruction of the tanks thank you very much
Info
Channel: ME@games
Views: 25,410
Rating: undefined out of 5
Keywords: ai in ue4, ai ue4 tutorial, epic games fortnite, epic games free games 2022, game development full course, game development process, game development unreal engine 5, make a tank in unreal engine 5, tank ue5, ue5 niagara, ue5 niagara fire tutorial, ue5 tank, ue5 tank physics, ue5 tank tracks, unreal 5, unreal engine 5, unreal engine 5 animation, unreal engine 5 lighting, unreal engine 5 tank, unreal engine 5 tutorial, unreal engine 5.1 tutorial for beginners
Id: rqs5Tfmb9bU
Channel Id: undefined
Length: 38min 59sec (2339 seconds)
Published: Mon Dec 05 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.