|
|
@@ -42,14 +42,15 @@ public class Ellipse : MonoBehaviour
|
|
|
}
|
|
|
|
|
|
//设置camera 的观测位置
|
|
|
+ float cameraOffsetScale = 1.0f;
|
|
|
public void setCameraPos(Vector3 center)
|
|
|
{
|
|
|
-
|
|
|
- this.cameraXTran.localPosition = new Vector3(this.cameraXTran.localPosition.x, center.y, center.z);
|
|
|
-
|
|
|
- this.cameraYTran.localPosition = new Vector3(center.x, this.cameraYTran.localPosition.y,center.z );
|
|
|
-
|
|
|
- this.cameraZTran.localPosition = new Vector3(center.x, center.y, this.cameraZTran.localPosition.z);
|
|
|
+ this.cameraXTran.localPosition = new Vector3(center.x - 10 * cameraOffsetScale, center.y, center.z);
|
|
|
+ this.cameraYTran.localPosition = new Vector3(center.x, center.y + 10 * cameraOffsetScale, center.z);
|
|
|
+ this.cameraZTran.localPosition = new Vector3(center.x, center.y, center.z - 10 * cameraOffsetScale);
|
|
|
+ // this.cameraXTran.localPosition = new Vector3(this.cameraXTran.localPosition.x, center.y, center.z);
|
|
|
+ // this.cameraYTran.localPosition = new Vector3(center.x, this.cameraYTran.localPosition.y, center.z);
|
|
|
+ // this.cameraZTran.localPosition = new Vector3(center.x, center.y, this.cameraZTran.localPosition.z);
|
|
|
}
|
|
|
|
|
|
|