How to make an attached component move within screenspace on a turning character?
I'm simply trying to get a sphere component to move side-to-side with the mouse's input. I have up/down working already without a hitch.
I tried adding a world offset and comparing the values to relative space using a "Inverse Transform Location" node comparing the component to the transform of the character actor but what happens is it works fine if the character is facing forwards. As soon as the controller Yaw input turns the chgaracter, the component moves weirdly: At 90 degrees turn of the character, the component moves in/out in space instead of side-to-side and at 180 degrees, the controls are reversed. The component isn't rotating strangely, it's locked to the character's rotation, i checked, so i'm not sure what's going on.
Nevermind- there was some sort of glitch involving the sphere i was using because i had parented it and un-parented it several times. Tried it with a blank slate and it worked.
In case anyone's trying to do this: stick to relative locations for manipulating the sphere and if you're moving something with IK, in the anim BP use the sphere's World Location. Easy as that.
answered Feb 26 '18 at 09:46 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here