Example #1
0
 public KnotStatePull(KnotData data)
 {
     this.data = data;
     var(pullablePoints, fixedPoints) = this.data.GetPullableAndFixedPoints();
     this.pullableCurve = new PullableCurve(pullablePoints, new List <Vector3>(), fixedPoints, this.data.oculusTouch, closed: true,
                                            meridian: this.data.meridian, radius: this.data.radius, distanceThreshold: this.data.distanceThreshold, collisionCurves: this.data.collisionCurves);
 }
Example #2
0
        public KnotStatePull(KnotData data)
        {
            this.data = data;
            var(pullableRange, postFixedRange) = this.data.GetPullableAndFixedRange();
            OpenCurve preFixedRange = new OpenCurve(new List <Vector3>(), pullableRange.meridianCount, pullableRange.radius);

            this.pullableCurve = new PullableCurve(pullableRange, preFixedRange, postFixedRange, this.data.oculusTouch, closed: true,
                                                   distanceThreshold: this.data.distanceThreshold,
                                                   collisionCurves: this.data.collisionCurves
                                                   );
        }