Ejemplo n.º 1
0
        protected override void Start()
        {
            base.Start();

            _lastFrameUpdated = 0;
            _wristFilter      = OneEuroFilter.CreateVector3();
        }
Ejemplo n.º 2
0
        protected override void Start()
        {
            base.Start();

            InitFingerJointFilters();

            _lastFrameUpdated = 0;
            _lastFiltered     = new HandDataAsset();
            _wristFilter      = OneEuroFilter.CreateQuaternion();
        }
        protected virtual void Start()
        {
            Assert.IsNotNull(_bufferingParams);
            _bufferingParams.Validate();

            _bufferSize = Mathf.CeilToInt(_bufferingParams.BufferLengthSeconds
                                          * _bufferingParams.SampleFrequency);
            _bufferedPoses.Capacity = _bufferSize;

            _linearVelocityFilter = OneEuroFilter.CreateVector3();

            Assert.IsNotNull(ThrowInputDevice);
        }
Ejemplo n.º 4
0
 public JointFilter(HandJointId jointId)
 {
     _jointId = jointId;
     _filter  = OneEuroFilter.CreateQuaternion();
 }