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"

Mouse X Axis value randomly jumps to 0 during movement

I'm working on an RTS Style game and implemented a way to rotate the camera while holding the right mouse button. This should be extremly simple (which it is) but for some reason the camera is incredibly jerky. When I put a print node to the Mouse X Axis Value I could observe some weird behavior which explains the camera problems.

First when I move the mouse very slowly the axis value stays at 0 altogether, as if there is some threshold somewhere and even worse while moving the mouse the value also jumps down to 0 sporadicly which causes the camera to kind of stutter into place while rotating.

As you can see in my implementation I bound an input Action Event to the right mouse button which does fire correctly when the button is pressed or released (so it is not the event that randomly closes my gate or something like that).

Blueprint Implementation in Player Controller

Product Version: UE 4.21
Tags:
bp-rotatex.jpg (390.6 kB)
more ▼

asked Apr 16 '19 at 10:19 AM in Using UE4

avatar image

Glomby
1 3 1 3

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

1 answer: sort voted first

Okay, I'm convinced now that the Mouse X Event is bugged. I've basically build my own Mouse X Event now, by using the GetMousePosition Function and comparing the changes in the Tick event. This basically outputs the exact same Data than the Mouse X Event but works perfectly smooth under all conditions I've tested so far.

more ▼

answered Apr 17 '19 at 09:39 AM

avatar image

Glomby
1 3 1 3

(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