Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Custom gravity for spaceship


I'm trying to learn how to use gravity in my ship, so my player can walk around while another flies. From what I've found that I may need a gravity volume.

I've seen it done in custom movement projects (https://www.youtube.com/watch?v=begXAlhTDEs&t=53s) and even planet projects (https://www.youtube.com/watch?v=t7ObeBxkX48) but alas nobody seems to share.

Any help here would be greatly appreciated.

Product Version: UE 4.17
more ▼

asked Sep 15 '17 at 04:00 AM in Blueprint Scripting

avatar image

13 2 4 8

avatar image BladeMaster Sep 15 '17 at 01:13 PM

Maybe this custom gravity plugin will help you. https://github.com/mhousse1247/UE4-CustomGravityPlugin

avatar image Enraged91 Sep 16 '17 at 02:25 AM

Thanks for the link. Unfortunately it's all C++ which I don't have any experience with. Also after testing the project it seems to only work on static objects, whereas I'm looking to have high speed ships moving about.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Easiest way to do so is to make a volume (actor with any shape component) that will change on overlap character state to swimming and any other actors put gravity to 0 or change other things if needed actor or character leaves the volume (overlap end event) reverse the changes.

more ▼

answered Sep 16 '17 at 02:44 AM

avatar image

37.8k 937 172 1123

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question