V.3.0.0

Aerial Mantle

Explore how to create a Aerial Mantle system for your Unreal Engine 5 game.

Introduction

In this tutorial, we will explore how to create a Aerial Mantle system for your Unreal Engine 5 game. We will see how to enable your character to perform mantling movements on various surfaces and how to handle mantling in mid-air.

alt text

Project Setup

For this tutorial, I will use the project from the basic mantle tutorial. I recommend following this same approach to make it easier to understand. However, if you are already familiar with the plugin, you can certainly work from your own project and adapt the tutorial accordingly.

Aerial Mantling

Let's look at how to handle mantling when the character is in the air. The concept is simple: we just need to adjust the detection and skip the impulse phase in the mantle animation.

To do this, we'll start the animation montage around 0.65, which is when the character already has their hands on the ledge.

alt text

We are going to create a pure method called DetermineMantleStartPosition. This method will take a parameter of type EMovementMode, which will help us determine if the character started the mantle in the air or not. It should also return a float value, which will indicate when to start the mantle animation.

alt text

Next, use this method in the OnMantleStarted event, as shown in the example below.

alt text

Great, the aerial mantle system is now functional and adapts perfectly to different wall heights while in mid-air!