Unity实现圆形旋转滚动视图
前言
一、计算圆心坐标及半径
半径公式 radius = (cellWidth * cellWidth /(4 * cellHight)) + (cellHight / 4)
圆心坐标 (0,-radius)
二、计算圆上点位置及切线和夹角
1.计算圆上点
Context.CircleCenter 是圆心位置的Transform
//求角度
float angle = currentPosition * 360f;
float hudu = (angle / 180) * Mathf.PI;
Debug.Log("angle = " + angle + " hudu = " + hudu);
float xx = Context.CircleCenter