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"

Interactive radial button based on mouse location

I'm trying to create an interactive radio within the Blueprint system. I want it to be controlled with the mouse. You press the button and hold, dragging the button around to rotate it. The system I've created doesn't work and I can't figure out any reason why.

The location of the button's root and the location under the mouse is connected into a "Find Look At Rotation". I then get the X(Roll) of the rotation and place in into an "Add Relative Location". For some the rotation works on Y and Z, but X just won't move. the debug line is drawn correctly, the print string shows a value within X but it doesn't rotate.

Any idea why?

Also, if you have a better way to do this please say! I believe this system won't feel as responsive as I wish, especially for a game based around radio controls!

alt text

Product Version: UE 4.9
more ▼

asked Nov 13 '15 at 12:11 PM in Blueprint Scripting

avatar image

50 4 7 11

avatar image AlexHaddowMendes Nov 13 '15 at 12:25 PM

Ok, found that the rotation was in actually in the Pitch, I just set that to the roll variable. Problem is that it only sets the correct rotation when in the bottom left corner.

The variable just cycles through 0 to -90. Anyway to get the full 360? -180 to 180?

avatar image CKong Nov 16 '15 at 08:35 AM

Well, in my knowledge, it take extra work and time to understand and put into use the rotation system you want. You may want to use AddActorRotation, the input will be based on the current mouse location and the lasted mouse location.

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

0 answers: sort voted first
Be the first one to answer this question
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