Unreal Gurus:
I’m having an odd issue where I can’t move in all directions while in a zero gravity setup, but only in a specific situation.
The scenario is that I have a ship that I can fly, exit to the outside of it, or walk around inside of it.
The Issue:
If I land the ship on the side of an object, I can’t move in the direction of world negative z. Oddly, I can move in this direction if I’m inside the ship. There’s no difference in angle between the ship’s floor and the object surface, and I’m using the same objects to create the fake gravity vector in both as well. To be clear, I can move, but at a crawl that’s nearly imperceptible. On rare occasions, it breaks through and starts working for a second, but then I can’t get it to repro. It also happens with world-up but much more rarely, whereas world-down is 100%. (If I change the input method from Add Movement Input to Add Force, this is better, but the player still gets hung up in the up/down directions)
Here’s a diagram to illustrate:
Here’s a snapshot of my Update Gravity function, which runs on the player’s tick if gravity is on:
If I can’t figure this out, my little experiment is a bust.
Please help, Unreal Gurus!