When I stop moving my mouse, I'd expect the delta to read out 0,0 but it reads 0.839999974
Why is this the case and how to I fix it?
You should'nt be expecting the Delta
to read 0,0
in the first place. It will if you stop moving your mouse(even though its locked) and jump your character. Delta is a Vector3
and it is based off of where your mouse is locked.Delta
has a value only if MouseBehavior
is LockCenter
or LockCurrentPosition
, otherwise its gonna be 0,0,0
. Think of this as a graph with the X,Y,Z
quantities, if you are using LockCenter
, then its gonna be based off of the center, and if its LockCurrentPosition
, its gonna be based off of the position the player's cursor was in at the time of function. This isnt something that shows targetposition
as in a humanoid.
I hope you have an understanding on what Delta is and how it works, if you do, make sure to upvote. Thank you.