public LAppView(LAppModel model, Transform tr) { this.model = model; transform = tr; deviceToScreen = new L2DMatrix44(); viewMatrix = new L2DViewMatrix(); viewMatrix.setMaxScale(LAppDefine.VIEW_MAX_SCALE); viewMatrix.setMinScale(LAppDefine.VIEW_MIN_SCALE); viewMatrix.setMaxScreenRect( LAppDefine.VIEW_LOGICAL_MAX_LEFT, LAppDefine.VIEW_LOGICAL_MAX_RIGHT, LAppDefine.VIEW_LOGICAL_MAX_BOTTOM, LAppDefine.VIEW_LOGICAL_MAX_TOP ); 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) { 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)); }