How do you find this angle?
I’m making a zipline and I need the slope angle of the line so that I can make dynamic velocity for the zipline.
Btw the line thats connecting the two poles is a “Rod Constraint”
How do you find this angle?
I’m making a zipline and I need the slope angle of the line so that I can make dynamic velocity for the zipline.
Btw the line thats connecting the two poles is a “Rod Constraint”
You can use the formula Rise divided by run to find the slope. So basically the difference between Y and the difference between X. You can then put the slope result into the arc tan math function to get a angle in radians. Rise/Run
Trigonometry!
let the horizontal distance be X and the vertical distance be Y
The angle would be equal to
tan^-1 (y/x)
In Roblox code, the formula would be:
math.atan(y/x)
Thats not finding the angle, which is which they said they wanted in the diagram.
You need to use trig to solve it
The diagram shows how to get rise and run than I said in my other post to put it in the inverse tan function.
I know you need trig for it.