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)); }