Ejemplo n.º 1
0
        void InitializeAnimationParameters()
        {
            // Random number/noise generators
            _hash  = new XXHash(_randomSeed);
            _noise = _hash.Float2(-1000, 1000, 0);

            // Initial foot positions
            var origin = transform.position * math.float3(1, 0, 1);
            var foot   = (float3)transform.right * _footDistance / 2;

            _feet[0] = origin - foot;
            _feet[1] = origin + foot;
        }
Ejemplo n.º 2
0
        void Start()
        {
            _animator = GetComponent <Animator>();

            // Random number/noise generators
            _hash  = new XXHash(_randomSeed);
            _noise = _hash.Float2(-1000, 1000, 0);

            // Initial foot positions
            var origin = SetY(transform.position, 0);
            var foot   = transform.right * _footDistance / 2;

            _feet[0] = origin - foot;
            _feet[1] = origin + foot;
        }