I am using the ArcHandles which returns these named parameters for a function: axis, relativeAngle, deltaRadius
Axis = axis being rotated (X, Y, Z)
RelativeAngle and DeltaRadius are singular numbers that go from negative to positive. I have no idea how to use them but my guess is that they may be in radians.
I want to create a rotation increment similar to how you can set how many degrees to increment in Studio. Roblox wiki does not provide clear explanation about what these parameters are so I had to take guesses and what not while printing out numbers a lot.
This is what I have and I tried many ways to do my increment but I could not find a way to do it. For non-rotation handles, I incremented by comparing a delta to the increment value.
In the case you don’t understand increment, its a grid snap but for rotation, for example a rotation increment of 45 degrees means that rotating once will rotate 45 degrees and no less.
Weird, did the post get bumped somehow? Handles and ArcHandles is a quiet subject so I appreciate the answer and will test it out when I get the chance!
Also since you’re using math.floor, it would round to an integer, my increment may be something like 0.6 or 42.55. How would I change that to work in those cases?
Could it be something like changing the roundedNum to this?
local roundedNum = math.floor((leftOvers / increment)+.5)*increment
It should work nonetheless because roundedNum is simply just to get a value between 0 and 1 to decide whether to go one increment up or not from divisions.
Just try it out. Don’t worry about the technical part of it before you have.