# Glider Pitch and Roll

**URL:** <https://forums.unrealengine.com/t/glider-pitch-and-roll/455923>\
**Category:** Blueprint\
**Tags:** pitch, roll, unreal-engine, Blueprint, question\
**Created:** [September 25, 2019, 1:00am UTC](https://forums.unrealengine.com/t/glider-pitch-and-roll/455923 "2019-09-25T01:00:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SaintZnHD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SaintZnHD](https://forums.unrealengine.com/u/SaintZnHD)\
**Post date:** [September 25, 2019, 1:00am UTC](https://forums.unrealengine.com/t/glider-pitch-and-roll/455923/1 "2019-09-25T01:00:31Z")

</div>

Trying to get the player to pitch down (when in glider mode) and gain speed. Possibly even gradually lose speed when pitching up. Trying to get it to work with mouse as well (or keyboard if needed for controll).  
Issues im having:  
Cant get pitch up/down to work.  
Player Loses speed when not holding W.  
Cant figure out how to clamp the rotation when rolling (and pitching probably).

Here’s a video of the glider in action.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/7/4/f74398e962a36c0923617b875008d17892f4c51c.jpeg "Glider First Flight") ](https://www.youtube.com/watch?v=t_i1JA_lwZw)

Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![Rumbleball](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rumbleball](https://forums.unrealengine.com/u/Rumbleball)\
**Post date:** [September 25, 2019, 1:50am UTC](https://forums.unrealengine.com/t/glider-pitch-and-roll/455923/2 "2019-09-25T01:50:20Z")

</div>

Get the world rotation of the glider. Get the forward vector from the rotation. Depending on the Z value of the forward vector increase/decrease the speed. You want to do have some friction that increases with speed so it feels more realistic and prevents further accelleration at some point.

Get the right vector of the rotation and use its Z value for clamping left/right rotation. You should not work with Roll part of rotation as it could cause issues with gimbal lock.

---

<div class="post-metadata">

**Author:** ![SaintZnHD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SaintZnHD](https://forums.unrealengine.com/u/SaintZnHD)\
**Post date:** [September 25, 2019, 2:41am UTC](https://forums.unrealengine.com/t/glider-pitch-and-roll/455923/3 "2019-09-25T02:41:40Z")

</div>

![288326-glider.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/0/3/403ab6b3bbc167a8112c57adbd0dc57742da5d41.jpeg)

---

<div class="post-metadata">

**Author:** ![SaintZnHD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SaintZnHD](https://forums.unrealengine.com/u/SaintZnHD)\
**Post date:** [September 25, 2019, 2:42am UTC](https://forums.unrealengine.com/t/glider-pitch-and-roll/455923/4 "2019-09-25T02:42:07Z")

</div>

not working so far, probably have it set up wrong.  
glider is attached to the player character, not sure if it helps at all. Just setting its visibility.

Also Tried This the input axis is mouse Y

 ![288328-alsotried-glider.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/7/a/d7a1f9486b5427ff8bcec0cca6303370428955c2.jpeg)

---

<div class="post-metadata">

**Author:** ![Rumbleball](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rumbleball](https://forums.unrealengine.com/u/Rumbleball)\
**Post date:** [September 25, 2019, 8:07pm UTC](https://forums.unrealengine.com/t/glider-pitch-and-roll/455923/5 "2019-09-25T20:07:12Z")

</div>

Z of the Forward vector. When flying straight, it will be 0. When pulling up: 0]…1], pulling down: [-1…[0

GetWorldRotation-\>GetForwardVector-\>Z

And you should use that value to calculate the accelleration/speed, NOT plug it into MovementInput.

You can multiply the speed with the ForwardVector of the Rotation and Plug it into MovementInput.

> **[r/unrealengine - How to imitate glider plane physics? \[C++\]](https://www.reddit.com/r/unrealengine/comments/3dxogt/how_to_imitate_glider_plane_physics_c/)**
>
> 6 votes and 16 comments so far on Reddit
