x

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"

How to change character orientation?

So I've been trying to make a game that simulates fighting on a spaceship. Kind of like a 3D version of FTL where you play as one of the crew. A big part of the physics in the game is simulated gravity and I've managed to make it so pretty much any actor can be inside the ship and be affected by the ships movement and it's artificial gravity.

My problem is that this doesn't work with characters. The character's orientation seems to be locked to using the world Z-vector as down.

Is there any way to change this? It's starting to look like I'll need to dive into the engine source code :\

Product Version: UE 4.16
Tags:
more ▼

asked Jun 07 '17 at 08:11 PM in C++ Programming

avatar image

MrData359
15 3 5 8

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

1 answer: sort voted first

Sadly, the gravity is hardcoded into every component of the engine to be -z. You can disable gravity, however, and add a vector that is applied to every actor in the scene every tick. That would simulate gravity, but it is just a hack and might lead to issues related to physics and animations and other stuff. There is a custom gravity modification to the engine floating around on a repository somewhere so if you can find it you might get some ideas there.

HTH

more ▼

answered Jun 08 '17 at 01:51 AM

avatar image

NoobsDeSroobs
2.7k 107 35 180

(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