Est_engine
(Est_engine)
November 26, 2020, 3:29pm
5
MostHost_LA:
… the insinuation that because of a different input device a circle is not composed of 2PI radians is just plain asinine.
Input methods have no relationship whatsoever with the amount of degrees you rotate something.
ergo, just make it so that your vector for shooting is rotated by a set amount.
And remember that you have the forward, right, and Up vector you can base the starting calculations on.
In your case, with only 8 directions you have an increment of 360/8 - or 45°.
In the case of gaining input data form the mouse, the situation is no different. You still increment and decrement a rotation value based on the current mouse position. You don’t need anything fancy, just to know if you are before/after the previous frame.
Hi man,
Yep, sorry , my bad, i could be more clear,
Since he wrote "can shoot in 8 directions… " and "How could I get this to work, or even 360-degree shooting? "
i focused on the mechanical part of input , before the vector set up .