problem description
it is known that I have a turntable with four (not fixed) contents. At present, I can successfully get the information of the target item after rotation (subscript).
but I can never turn the turntable to the expected position (forgive my stupidity)
related codes
/ / Please paste the code text below (do not replace the code with pictures)
this.start_rotating_degree + 360 * 10 + Math.floor(-360 * 100 / this.prize_list.length) / 200 - Math.floor(360 * 100 / this.prize_list.length) * result_index / 100;
above is my current code, where
start_rotating_degree: 0, //
prize_list: [{},{},{}]
result_index
what result do you expect?
go to the corresponding target item