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 :\
asked Jun 07 '17 at 08:11 PM in C++ Programming
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.
answered Jun 08 '17 at 01:51 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here