Exemplo n.º 1
0
//---------------------------------------------------------------------MONO METHODS:

        void Awake()
        {
            velocitySmoother = new VelocityFilter(SmoothingWeight);
            velocitySmoother.Clear(transform.position);
            angularVelocitySmoother = new AngularVelocityFilter(AngularSmoothingWeight);
            angularVelocitySmoother.Clear(transform.rotation);
        }
Exemplo n.º 2
0
//--------------------------------------------------------------------------METHODS:

        public void Clear()
        {
            velocitySmoother.Clear(transform.position);
        }