Hello everyone, i am relatively new to Unreal Engine and game devepoling overall, and i’m stuck on one “simple” problem. I’m trying to make a movement system for Character pawn which supposed to be similar to DefaulPawn, which is albe to just fly freely, so in Character BP i set up flying mode, and created input action on space and left ctrl to Add Movement Input with Get actor Up Vector, but in aftermath in simulation when i press Space, the character flies Up and Forward simultaneously, even tho i feed only 1d axis action value, but i want a character pawn to fly just straigh up instead of diagonal up-forward move, what did i do wrong? i’ll attach screenchots.
here you’ll see Action Value and not split pins of X and Y because i’ve tried that and pinned X and it didn’t matter, so i also tries 1d axis, second screenshot is proof that i set movement to flying
Hi there and welcome.
Everything you posted looks fine to me.
Definitely throw a print string in there to report the up vector you are getting back and verify it is sensible.
Otherwise there the must be something somewhere else causing it, space key mapped to two actions maybe?
Perhaps also try disconnecting the TestMove handler to test if it still happens.
well, i just did that you said - got vector of character speed by individual axis, got character aligned to world coordinates, and hooked up each of three print strings individually per test, and when i pressed space, i moved upwards and forward with same speed which was around 420 per Y and Z axis, and i have max speed of a character 600, thus it means that character indeed moves at 45 degrees angle forward and up, it’s a brand new BP_Character and IMC i created from scratch, there was no “inherit” logic outside of base Blueprints. I’ll ingestigate your suggestion about IMC and/or IA conflicting inputs for now
I resolved it. So, ilitially, i was trying to tinker with input action setting “axis 3D”, called it “IA_TestMove” and expected that if i put there A/D for X axis, W/S for Y axis (via swizzle axis YXZ) and Space/Left Control for Z axis (Swizzle ZXY or ZYX) then i can just use only one input action for allthree directions, but apparently it didn’t word out for unknown reason, i’ve tried to google it and search in UE documentation anything about using 3D axis but gave up on that and did what people usually make - split into two actions, horisontal plane moveing and vertical axis move, but forgot to delete Space and Control buttons from orininal IA_TestMove, so i guess the input was from both actions when i pressed Space
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.