how to make a character follow a curve and terrain of a surface in blender

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
I guess when if this was on today I want to show you how to make a character follow a curve while also following the tearing or bumps in the terrain like you see here so I don't like this character from mixing up with some animation so you can download that from that if you want but yes get into the habit topic so the first thing we want to do is draw the curve using a curved object so shoot a busy a cow it's going to scale it up a bit and go to edit mode you can select one control point and then hold and control button right-click anywhere to have to draw different new cone in new control points at the point of selections so this is what we have and that is going to be our curve that the character is going to follow now before I use the character let me just keep it simple by adding by adding a cube we go to how first of all use this and then later parent the character onto the cube so that it the set up is much easier at what so now to make these this cube follow the curve we just have to give it a constraint a follow path constraint select the path we have just drawn and now if you play back it doesn't really follow anything because we need to unmake the car first so you hit the unmade path and I can see that the curve this cube is flowing at the cup the problem is when you add a follow path constraint I'm not sure why this happens always but it moves are the cube far away from the constraint but what you want to do is bring it back and a take note of this relationship line I want it to move closer so that that relationship line is almost not there it's not visible and when you have the path constraint on and try to move the cube it moves really fast so if you want it to move slower yes hit G and then shift to drag it's slower and just make sure that this relationship line is really short or almost none there so it's going to make sure that it's not yeah like that now you can see that this is following the cup but it's not really following bittering to make it follow the truck deterring what you want to do is select the cup and give it a shrink wrap modifier and then select this array to be your modifier if we play back nothing's still happy this is still hovering over the surface instead of following the surface so what you want to do is click on these while you how they can selected make sure you on the shearing crap modifier of the cup you select this icon here you check on that icon here and that will make this cube follow the surface but in some areas you notice that the curve is still hovering over the surface instead of following the terrain or the surface and the reason for that is the tab we don't have enough control points for that area so just select the curve game and the subdivide and you can see that whenever you subdivide as the car becomes more huts the surface more and more another thing you can do is make sure that the pivot point or make sure avatar the car is closer to the surface of the object and that the best way to do that is by giving this the curve a shrink-wrap constraint it's also you select you give that shrink-wrap constraint and that give it and select the surface as the shrink-wrap constraint I'm sorry object or target and I can see now are the curve hugs the surface way bitter like so then another thing you notice if we parent this object our character let me just go to the beginning if we parent our character so let's select peace if we parent our character to - this cube you can see that they are not really rotating or following the direction relating to the direction of the car if you want that to happen what you want to do is select the cube and make sure you turn on follow curve and that will make sure that the character is always facing the direction of the car but for our character might need to rotate them 180 degrees that way so that we are following the right direction all right now we see the animation is a bit too quick and to control the speed of the animation you want to select the curve and I'll go to the car settings and under path animation you can see how many frames it takes for the entire loop to complete so right now is taking 100 frames at car to complete so you can see by by 100 frames should be at this point here and just to show you that's that's the length of the the car so if you want it to take to be slower you would have to increase the number of frames it takes to get to the are to this last point of the car so now you can see it's a bit slower still not slow enough so this it's about 500 frames and see how that looks so I'm also noticing that this this is a bit you can see this is running ahead of the curve the reason for that is that if I first shake clearly the parent and a clear rotation as well for this object for this for this character clear current and clear rotation rotate 90 degrees you can see that this character is also animated moving forward so now we don't want that if you're going to use the follow path constraint because it's going create a few issues so what you want to do is we want to go you want to go to the curve editor just he is in control tab to tab it to be curve editor and I want to find the Z location because this is the position before velocity of forward movement of the curve and so that we can get rid of that so this is it I can get rid of that it might be different for different animations or characters so make sure you find the the axis that is giving are the for movement off to the character so in my case it was that axis then now you can see that the character is saying in one position now what is left is to make it look at make it look I'm just going to first subdivide this into oscillate this into another editor the nonlinear editor so that I can see this I almost call it is the nonlinear editor and make sure we have only the selected are nodes visible and then just click on these to make them activate it click them and duplicate these a few times to make the animation look or you placated so you have to look at as long as the length of the timeline if you don't want the animation to post now you can see that this runs continuously because we have made the animation loop and now what is left is that parent is to the curve sorry object that is following the curve and now we can get that animation that you see there sometimes the animation is not smooth like you see right now is ice a bit jagged so what you can do is a the cap you can also give the curve a small s called smooth yeah you can smoothen the curve a bit by giving it a smooth smooth mmm modify so the admission is known to judge it or it's not too shaky as you could see as you can see now and that's how you make a character follow the path you might also want to just make it aligned to the rotation of the path just a bit yeah so thanks for watching I'll see you in the next video
Info
Channel: TopChannel1on1
Views: 36,323
Rating: undefined out of 5
Keywords: blender, blender tutorial, blender 2.8 learn blender, 3d modeling, how to make video games, cg, blenderguru, eevee, cycles, uv unwrapping, cgi, archviz, tutorial, game engine, unreal engine, texturing, substance painter
Id: 6G61gZyo8D0
Channel Id: undefined
Length: 8min 55sec (535 seconds)
Published: Wed Jun 10 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.