Example #1
0
        ////////////////////////////////////////////////////////////////////////////////////////////////
        /*--------------------------------------------------------------------------------------------*/
        public override void UpdateInput()
        {
            ReadOnlyCollection <PlaneData> planeDataList = vPlaneProviderFunc(vCursor.Type);

            vPlaneStates.RebuildWith(planeDataList, InitStateFunc);
            vCursor.UpdateWithPlanes(vPlaneStates.ReadOnly);

            //PlaneState nearest = planes.FirstOrDefault(x => x.IsNearest);
            //Debug.Log("NEAREST: "+(nearest == null ? "---" : nearest.Id+" / "+nearest.HitDist));
        }
Example #2
0
        ////////////////////////////////////////////////////////////////////////////////////////////////
        /*--------------------------------------------------------------------------------------------*/
        public override void UpdateInput()
        {
            PlaneData[] planeDataList = vPlaneProviderFunc(vCursor.Type);

            PlaneState[] planes = planeDataList
                                  .Select(x => new PlaneState(x))
                                  .ToArray();

            vCursor.UpdateWithPlanes(planes);

            //PlaneState nearest = planes.FirstOrDefault(x => x.IsNearest);
            //Debug.Log("NEAREST: "+(nearest == null ? "---" : nearest.Id+" / "+nearest.HitDist));
        }