public LAppView(LAppModel model, Transform tr) { this.model = model; this.transform = tr; this.deviceToScreen = new L2DMatrix44(); this.touchMgr = new TouchManager(); this.dragMgr = new L2DTargetPoint(); Bounds bounds = model.GetBounds(); this.localP_LT = new Vector3(-(bounds.size.x / 2f), 0f, bounds.size.z / 2f); this.localP_RT = new Vector3(bounds.size.x / 2f, 0f, bounds.size.z / 2f); this.localP_LB = new Vector3(-(bounds.size.x / 2f), 0f, -(bounds.size.z / 2f)); }
private Vector3 localP_LB; //y public LAppView(LAppModel model, Transform tr) { this.model = model; transform = tr; // デバイス座標からスクリーン座標に変換する deviceToScreen = new L2DMatrix44(); // タッチ関係のイベント管理 touchMgr = new TouchManager(); dragMgr = new L2DTargetPoint(); Bounds bounds = model.GetBounds(); localP_LT = new Vector3(-(bounds.size.x / 2), 0, (bounds.size.z / 2)); localP_RT = new Vector3((bounds.size.x / 2), 0, (bounds.size.z / 2)); localP_LB = new Vector3(-(bounds.size.x / 2), 0, -(bounds.size.z / 2)); }
private Vector3 localP_LB; //y public LAppView(LAppModel model, Transform tr, GameObject myoObject) { this.model = model; transform = tr; myo = myoObject; deviceToScreen = new L2DMatrix44(); touchMgr = new TouchManager(); dragMgr = new L2DTargetPoint(); Bounds bounds = model.GetBounds(); localP_LT = new Vector3(-(bounds.size.x / 2), 0, (bounds.size.z / 2)); localP_RT = new Vector3((bounds.size.x / 2), 0, (bounds.size.z / 2)); localP_LB = new Vector3(-(bounds.size.x / 2), 0, -(bounds.size.z / 2)); }