#Issue with Mouse Input -> Constant rotation

1 messages · Page 1 of 1 (latest)

naive star
#

Hello everyone, I'm having an issue with constant clockwise rotation. When the mouse is idle, it will rotate endlessly.
When I give mouse input, it can generally begin to turn the correct direction, although at a much slower rate. Vertical movement seems to be okay as well. Just a constant, rightward rotation.
My brain is a bit broken at the moment from trying to debug this. I was hoping someone may be able to spot my issue. I've posted my update method but can provide more information if needed. I'm pretty sure the issue lies here somewhere. ps. this is for a first person camera. I'm using the new input system with my action type as value and control type as vector 2.
Thank you for your time

torn rampart
naive star
naive star
torn rampart
#

Can you show the log and how you've your Update method with the logs? !code

sharp mistBOT
naive star
naive star
torn rampart
# naive star

Uncheck collapse and show a few of the messages when you're rotating but are not pressing anything.

naive star
torn rampart
#

Log the magnitude prior to the if statement.

naive star
naive star
torn rampart
#

From what it seems, delta magnitude is never less than 0.5f so you'll be adding some non-zero offset indefinitely to your character

naive star
torn rampart
naive star
torn rampart