- #1
simchris111
- 2
- 0
I'm working with 3D applications, and I'm trying to figure out how to calculate the rotation of x number of points between two points.
I've made a video to illustrate what I mean:
https://www.youtube.com/watch?v=CmIk8I8itrQ
So the thing is, I need to find some kind of formula that calculates the rotation of the red points based on the rotation of the green ones. The middle red point should always be 50% between the top and the low point, but the red points below and above the middle should bias the rotation towards their closest green point. In this case I have 5 red points, it would be awesome if the formula also worked on more points.
So the formula has to work only from knowing the number of red points, and the rotation of the upper and lower green point.
I'm sorry if this is stupidly simple, but I can't seem to wrap my head around it.
I've made a video to illustrate what I mean:
https://www.youtube.com/watch?v=CmIk8I8itrQ
So the thing is, I need to find some kind of formula that calculates the rotation of the red points based on the rotation of the green ones. The middle red point should always be 50% between the top and the low point, but the red points below and above the middle should bias the rotation towards their closest green point. In this case I have 5 red points, it would be awesome if the formula also worked on more points.
So the formula has to work only from knowing the number of red points, and the rotation of the upper and lower green point.
I'm sorry if this is stupidly simple, but I can't seem to wrap my head around it.