How can I set up Space Sim gravity physic/scripting?

Hi, I’m completely new to Unreal Engine, I need help and suggestions on making a space simulator game which applies basic gravity physic.

I want to make moons orbit planets, planets orbit stars, people/vehicle/objects can walk on planet’s surface. With enough pushing force, a ship, a rocket, or anything, can be launched to sit on the planet’s high orbit (like to launch a satellite), or with greater force, break the gravity and fly away to land on other planets/moons.

Does UE4 support such physic model? (multiple gravity sources)

If it does not, which is the easiest, fastest, best performance and most efficient way to achieve that?

Thank you!

Hi mGlushed,

If you’re asking if UE4 natively supports point gravity (i.e. objects being pulled down to a single point), no it does not. However what you are asking is possible for you to engineer yourself.

I’ll point you to the direction of the UDK forums here: < UDK Forums > where a lot of other people have tackled the same question, and maybe you can port one of their solutions to UE4! Here’s some examples of what I was able to find:

Point Gravity Tutorial and a
Video with Code

Hope this helps!

Awesome! Thank you, I will check it out!

theres no code with that video