Hey guys,I’m having some issues with the Snap to grid(float) node. Essentially made a Gmod style Physgun.
When the player holds down Left Shift+E and moves their Mouse on the X axis,it rotates an actor in increments. Essentially it snaps them 22.5 degrees at a time. Which is exactly what i need! Except…For the fact that,Well when i move my mouse right,it rotates right,as it should.
But when i move it Left,the the snap to grid nodes snaps it in the opposite direction,seemingly at random,Then it rotates as it should.
Sometimes if i rotate i snap the object +90 degrees and rotate it left ittl snap Once to -90 then back to 90 then 67.5 then down to 45 as i move my mouse left.
Other times ittl snap to a random angle(It always snaps to an angle that can be multiplied by 22.5 though so its doing its job) but i dont know if its a bug or not and it doesn’t feel right.
I’m 80% sure i’m doing something wrong but can anyone give me any advice as to how to fix it,or how to avoid it? I just need to get rid of that errr “randomness/Unreliableness”.
Essentially if you wanna know what i want it to do;
I want it to just snap 22.5 Degrees at a time with mouse Input. Currently its only set to Mouse X but it’ll be set to Mouse Y some time later today.
Any advice would be greatly appreciated.