i made this thing that would move to mouse.
it should rotate to mouse gradually, but i can't seem to get it to rotate fully. it would go the other way most of the time. when the point is directly behind (180deg) it would be confused and jitter left and right. still debuging the math, but it's not my forte. any help is appriceated. thanks.Code:-removed. check next post-
p.s. you just need to copy paste the code to test it.




Reply With Quote