Hello, I am attempting to try and limit the rotation of a spawned bullet to 16 directions, which I believe is steps of 22.5 degrees, however I am not sure how to implement the correct "round" syntax and math for this..
I have bullets spawning toward the player, so I assume I would implement the "rounding" (whatever the correct syntax is) after that action?
Hope someone is willing to assist.