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 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.

Product Version: UE 4.18
Tags:
more ▼

asked Feb 26 '18 at 08:56 PM in Blueprint Scripting

avatar image

0vr
182 21 32 40

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

1 answer: sort voted first

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.

more ▼

answered Feb 26 '18 at 09:46 PM

avatar image

0vr
182 21 32 40

(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