REALISTIC movement with CAMERA SHAKE in Unreal Engine 5

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
foreign [Music] we are going to see how to make the realistic movement of the head with the camera Shake as you can see now it is an idle and it makes a small movement of the head now if we walk it also makes a small movement a little more exaggerated and if I give it to run now it moves more and so it's more realistic I'm going to go to the camera Shake folder that I have created and what we are going to do is right click blueprint class and here we look for camera Shake and it will appear this one that says camera Shake base and we click on it we will need three camera shake the idle the walk and the run I will call it camera Shake idle and we will begin with this one and we will duplicate it [Music] we open it and here to the right we will see this here and we will select the wave oscillator and we will see all this I am now going to put here the data that I have been testing it is as I have liked more than what you have seen in the intro but you can touch all that you want to modify it as you see you have the location of the camera in which you can modify the amplitude and the frequency with which it moves and the same with the rotation amplitude and frequency and within the rotation you can specify the pitch yaw and roll here it is to go testing but I am going to tell you some numbers that are the ones that I already have I'm going to put in the location I'm going to leave it at zero in the rotation I will put 0.6 and 0.6 and 0.6 the pitch 0.8 the yaw 0 and 0. and the roll 0 and 0 and we leave it like that now I'm going to duplicate this one and this one is going to be for walking so I'm going to call it camera Shake walk we open it up and with this the same thing I'm going to put what I already have in location 0.5 and 0.5 in rotation 0.5 and 0.5 and 0.5 and 3. the Via 0.3 and 1.5 duplicate camera Shake run and now in this we are going to put the location 0.7 and 0.7 rotation 0.7 and 0.7 and 0.7 and 4 yaw 0.6 and 1.8 and the roll 0.6 and 1.8 now let's go to our character and the first thing I'm going to do as I always do is I'm going to take his arms off this I'm going to move it up a little bit more and this I'm going to make it a little bit narrower I always do this with the first person because I like it better that way otherwise I see the capsule too wide and it's easier for it to collide with things so the first thing is to make it so that when I hit shift the character runs then what we are going to do is click on the character movement and set the maximum walk speed to 300 or whatever you want to set this would be the maximum walking speed we'll set that when we hit the left shift or whatever button you want but usually it's the shift we will take the character movement and we will put that the max walk speed set is modified when pressing or releasing so I copy here again and we want that when we press shift it runs at 600 and when we release it goes to 300 that is the maximum speed that we have put to the character it has to match because otherwise it won't work right this on the one hand and now we are going to go to what is to create the camera Shake event we are going to look for custom event camera Shake event so what we're going to do is we're going to look for get velocity Vector length and we're going to put in that if the velocity is less equal less than or equal to zero it will use the camera Shake idle which is when you're still we'll do Branch this here and if it is if it's true that it's at velocity zero or less we'll look for get player controller [Music] start camera Shake client start camera Shake in true it will use the camera of the idle Hammer Shake idle if false we are going to copy this and we will say to him that if the speed is greater or equal to 301 because we have put that walk is until 300 if it exceeds the walk that are already 301 then it will use the camera Shake run we look for Branch if false start camera shake for true we look for camera Shake run and if all this is false therefore it goes between 0 and 300 then it will use the one of walk for here we place it for this false and we look for the camera Shake walk now the event is done but it is necessary to activate it and it is activated in the event tick since it is something that is constant so we will look for the event tick and we will call the camera Shake event and another detail that I forgot to make it work right is going back to the camera Shake in all three what we're going to do is the single instance set to true and at the end of all in the timing the blend out time in one and that in all three now we can make the test [Music] we give to play now we are in Idol we are an idol we already see that it makes breathing movement we walk it moves a little more and we run and it moves more this would be to make the realistic movement of the head but imagine that you want to make a camera Shake in a jump scare for example or in some moment of an earthquake or anything well you would simply have to adapt it to the event that is going to happen for example imagine that you put an actor with a box Collision that when he crosses it activates some stones and then the camera move or for example a jump scare and the movement of the camera when the character gets scared it is the same as we have done placing it at the corresponding Moment by modifying the camera Shake parameters the condition instead of the speed will be the one you set inside the camera shake you can also set the duration in the end everything is to adapt it to the event you want to use it so here is the video on how to create a camera shake for realistic movement
Info
Channel: Nirnaeth GameDev
Views: 6,890
Rating: undefined out of 5
Keywords: unreal engine, unreal engine 4, unreal engine 5, ue5, ue4, gaming, gaming development, gamedev, blueprints, unreal engine tutorial, how to unreal engine, unreal engine beginners, create a videogame, camera shake, realistic head movement, beginners
Id: iFRmT0Fqn6s
Channel Id: undefined
Length: 10min 13sec (613 seconds)
Published: Mon Aug 21 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.