一、運動效果
二、機構的介紹
曲柄長度:a,線段AB長度
連桿長度:b,線段BC長度
偏心距離:e,滑塊軌跡與曲柄中心點A的垂直距離
三、已知點A點B和e的值,計算C點的位置
1、計算s的值
var h = math.abs(B.transform.position.y - A.transform.position.y - e);
var s1 = math.sqrt(b_BC * b_BC - h * h);
var s = s1 + (B.transform.position.x - A.transform.position.x);
2、計算C點坐標
C.transform.position = A.transform.position + new Vector3((float)s, (float)e, 0); //擺放C的位置