# programming  flight mechanics? (physics and other stuff)

**URL:** <https://forums.unrealengine.com/t/programming-flight-mechanics-physics-and-other-stuff/11341>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [September 13, 2014, 3:04pm UTC](https://forums.unrealengine.com/t/programming-flight-mechanics-physics-and-other-stuff/11341 "2014-09-13T15:04:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![WRodewald](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WRodewald](https://forums.unrealengine.com/u/WRodewald)\
**Post date:** [September 13, 2014, 3:04pm UTC](https://forums.unrealengine.com/t/programming-flight-mechanics-physics-and-other-stuff/11341/1 "2014-09-13T15:04:23Z")

</div>

Hi,

I am quite new to working with an engine so I would like to ask you if a project I have in mind would work out with UE4. It’s basicly going to be a flight-sim, but i’m not sure if in space or atmosphere.  
Here are some questions I have:

1. The camera can be adjusted to move freely in a 3d room with no real “up” and “down” right? So panning, pitch, yaw etc. would work, right? I somewher read that this could be hard to achive. The demo project somehow doesn’t like the camera facing up or down…
2. Is it possible to set the world center to the player so the world isn’t “limited”? I’ve read that this is a common thing with flight simulations that there isn’t realy a fixed world but the player is the fix point and the world is moving.
3. can procedural world generation be achived with UE4? (Depends on how it’s implemented I guess but a hint would be nice. ;D)

That’s actually all I have to know, the rest should be implementable I guess. ;D  
I hope you can help me with my questions so I can start with the project without having open questions like this. ;D

Cheers!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_44b1794d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_44b1794d](https://forums.unrealengine.com/u/anonymous_user_44b1794d)\
**Post date:** [September 13, 2014, 5:27pm UTC](https://forums.unrealengine.com/t/programming-flight-mechanics-physics-and-other-stuff/11341/2 "2014-09-13T17:27:36Z")

</div>

1. Yes. I am working on a space game, and in space there obviously isn’t real up&down, or left&right for that subject matter.
2. World will always be limited, but you can either use their new… what was it called? well, it basically allows you to divide the world into chuncks that load accordingly, allowing for as big maps as you would like. The downside is that it is singleplayer only. Other option is to downscale everything, maybe you only want the plane to be, let’s say, 25cm wide? (and enviroment scaled the same way). This will allow you to have WAY more “planes in a row” in the map. The con side is decreased physics accuracy.
3. yes, absolutely it can! I havenä’t really done a lot of research on mesh combination, but atleast you will be able to spawn actors by an algorythm. If you go that path, you could also generate unlimited worls, by simply teleporting your player back to other side when he reaches bounds, and storing the “chuncks” as seed numbers in a bunch of variables.

\*Hope this helps,

---

<div class="post-metadata">

**Author:** ![WRodewald](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WRodewald](https://forums.unrealengine.com/u/WRodewald)\
**Post date:** [September 13, 2014, 11:09pm UTC](https://forums.unrealengine.com/t/programming-flight-mechanics-physics-and-other-stuff/11341/3 "2014-09-13T23:09:31Z")

</div>

Hi, Thanks for the response. 🙂 Now, I only have to know how to implement that stuff. 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_44b1794d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_44b1794d](https://forums.unrealengine.com/u/anonymous_user_44b1794d)\
**Post date:** [September 14, 2014, 2:49am UTC](https://forums.unrealengine.com/t/programming-flight-mechanics-physics-and-other-stuff/11341/4 "2014-09-14T02:49:52Z")

</div>

this tutorial will get you pretty far, and if you have any experience with blueprints, you should be good to continue from there 🙂

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

(Moving it over to C++ is kinda tricky, and unless you’re on about some massive player amounts, unnecessary. Even a listen server can handle such movements in blueprints)

---

<div class="post-metadata">

**Author:** ![WRodewald](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WRodewald](https://forums.unrealengine.com/u/WRodewald)\
**Post date:** [September 14, 2014, 11:02am UTC](https://forums.unrealengine.com/t/programming-flight-mechanics-physics-and-other-stuff/11341/5 "2014-09-14T11:02:20Z")

</div>

Hi,  
I’ve alread stumbled across this but didn’t noticed that he made the camera work like I wanted. I will go through the tutorial as soon as I have some time . 🙂

I would actually like to use c++ for the programming so I can improve my c++ skills but then again, working with the UE should be more of a free time activity for me. 😃

---

<div class="post-metadata">

**Author:** ![DennyR](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DennyR](https://forums.unrealengine.com/u/DennyR)\
**Post date:** [September 14, 2014, 11:49am UTC](https://forums.unrealengine.com/t/programming-flight-mechanics-physics-and-other-stuff/11341/6 "2014-09-14T11:49:53Z")

</div>

1. can be achieved easily by checking “Enable World Origin Rebasing” in the World Settings of your map.

2. and 3) are also achievable, 1) is in by default and 3) well, needs some work to do dynamic lighting in a reasonable performance/quality.

---

<div class="post-metadata">

**Author:** ![WRodewald](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WRodewald](https://forums.unrealengine.com/u/WRodewald)\
**Post date:** [September 14, 2014, 11:56am UTC](https://forums.unrealengine.com/t/programming-flight-mechanics-physics-and-other-stuff/11341/7 "2014-09-14T11:56:49Z")

</div>

regarding world gen. This is obiously a hard thing to do because you can’t realy use backed shadows etc. But I guess this would be the last step. 😃  
For now, flying in circles is fine with me. 😃
