[UE4]Gliding tutorial || Inspired by Breath of the Wild’s Paraglider

[UE4]Gliding tutorial || Inspired by Breath of the Wild’s Paraglider


hello guys in this video I will show you how to make a paraglider like the one in breath of the wild so first of all we are going to create the paraglider actor so right click on the content browser click on blueprint class click on actor name this paraglider open it up go to add component add a cone rotate this in the negative y-direction so negative 90 degree bring it to the front then resize it a bit so it looks like a glider now go into your third person character I am just going to delete my old node and variables and go to View port add component arrow a position it like this is where the paraglider is going to spawn now we only have to spawn the paraglider when the character is at a minimum height above the ground so in order to check this we are going to use a line trace so we are going to create a variable to store the minimum height so add variable type in min height and the variable type should be float now right-click on the graph and type “E” key so we get the e keyboard event then from first drag and type in line trace by channel we are going to get this start and end location from the capsule component so drag from here and type in get world location now for the any location drag from the return value and type in break vector we are basically going to subtract this minimum height from the z value so the minimum height should be 300 and drag from here and float – float drag and drop this in do this and right click on the graph type in make vector connect X – X Y – y and this to z and connect this to end and so if the line trace hits something this will return a value of true and if the land trace doesn’t hit anything it will return a value of false so we are only going to spawn the paraglider if this returns false so drag from here and type in not boolean press hold B and click so we get this branch connect this to this and connect this to this and if this is true we are going to spawn the paraglider spawn actor from so type in spawn actor from class and the class should be paraglider this transform can be obtained from arrow so drag and drop that in and drag from here and type in get world transform and connect this to spawn transform now we are just going to store this into a variable so drag and promote you variable and name this glider reference now we are going to attach the glider to the Arrow so drag the arrow into the graph and right click on the graph and type in a attach to component and connect this to here and this to target and add it to the parent and the location rule rotation rule and scale rule all should be keep world keep world world and keep world now let’s play so now you can see that the paraglider was spawned when I pressed the E key so we need to destroy it when we land also I have to activate and deactivate it when I press the E key then we need to add the gliding effect so go into your third person character create a new variable called is gliding and change the variable type to boolean and compile press B and click Submit this connect this to this and the false should be connected to this and drag and drop this into here so if we are not gliding we can spawn the paraglider and if we are gliding we will just destroy the paraglider so from this we will set isgliding? so we need to press alt and drag and drop this in connect this here and this should be unchecked here for assault and Dragons of this and this should be checked so if this is gliding we will make this node gliding and also we will destroy the paraglider for that result and drag and drop this in then do a is valid check on it we need the one with the question mark and connect this to this and drag and type in destroy actor and this will only destroy if the glider reference is valid it won’t attempt to destroy the glider if there is no glider in the first place so this will prevent errors from happening so we need to do this when we land also so right-click on the graph and type in On landed we are just going to go up here and select all this and press ctrl+W to duplicate this and connect this to here now we need to make the gliding effect for that we basically need to change two values in the character movement component the first one is gravity scale this one and the next one is air control this one so drag and drop a character movement component and drag from here and type in set gravity scale and the scale should be 0.1 again drag from the character movement component and type in air control set air control and change the value to zero point zero I mean 0.07 and when we land we need to set the values back so select all this ctrl + W to duplicate this and connect this to here and said set this to one and set this to zero point zero five we also have to do this here so select these three and press ctrl + W to duplicate it and bring it here then connect it to this so now we can glide so there are two issues one issue is that if we press E while jumping up we will keep on moving upwards and the other one is if we activate and then deactivate the paraglider in midair and activate it again we won’t glide but we will fall continuously down now this has to do with the C velocity of the character now I will show you how to fix this so first of all we need to disconnect this from here and make a new custom event so type in custom event and type in Glide we also need to create a function to take the Z velocity so add function the name should be is Z velocity negative and this should be a pure function so we don’t really have to connect this to event or anything we can just call it like any other function so add an output click on the graph and type in self drag and get velocity we need to break this and just get the Z velocity we need to check whether it is less than or equal to zero so connect it to this so add two branches by pressing and holding B and clicking two times and connect this to this and this to this and this do this and drag and drop these gliding here and drag and drop the is Z velocity negative here and connect it to this now we are going to add a small Z velocity using launch character so drag from here and type in launch character then we are just going to give a small velocity of five in the Z direction and check the Z over right then we are going to use a timer to call this glide event so drag from here and type in Corps I mean set timer by function name set timer by function name and the function name should be this name glide and I am just going to give it the value of 0.1 now let’s see if it is working or not so as you can see we can glide but if we deactivate the paraglider while we are close to ground we can’t activate it again but in breath of the wild we can do that so in order to fix this we just have to do one thing so when we deactivate the paraglider using the e key we just need to set the minimum height to zero and when we land we are going to set the minimum height back to 300 so that’s all we have to do to make a paraglider so thanks for watching guys and subscribe for more tutorials like this Thanks

9 comments

  • Ashfaq Adib

    Nice video!

    Reply
  • Knoron Bass Boosted Music

    Nice Video how have you make this nice trees

    Reply
  • Jess Cummins

    I like this. Cool mechanic I definitely think is fun to implement. Looking forward to developing this into VR!

    I've been watching vids on design. Here are some suggestions:

    – when first showing the new mechanic (in this case, paragliding), show using it for ~15 seconds before launching into the main video. I saw it once and started thinking of ways I can apply it, and then that segment was over. During that time perhaps you can give a short description of your channel and thank the viewer for watching.
    – you don't have to do this, if you can refer to another video doing it, but you may benefit from starting from scratch, creating a new project with blank settings, and importing the content you are going to use (for example, the third-person character content). I know how to do it, but a total newbie may find your videos more accessible if it's laid out more.

    Thanks!!

    Reply
  • BytheCandlelight

    Great tutorial! Very easy to understand and it works perfectly. I wonder if the same thing can be applied to making a Kingdom Heart's type glide, with a short flying animation in midair instead of spawning a paraglider…?

    Reply
  • Blackcat Overclocking

    THANK YOU!

    Reply
  • xXArbiter1337Xx

    Nice video, would it be possible to make the glide quicker?

    Reply
  • Chris Woodrum

    How can I make this replicated for multiplayer games?

    Reply
  • Wa ヅ Omae

    Great Tutorial. how can i add animation to hang the character through paraglider when gliding?

    Reply
  • Pip

    Thanks for posting this. Being inexperienced with UE4's blueprints, this helped freshening some new ways to experiment.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *