Ejemplo n.º 1
0
        private void Calc(double trajTime)
        {
            trajectory.Calc(trajTime * speed, ref _pos_1, ref _rot_1);
            _pos_2.x = cosr * _pos_1.x - sinr * _pos_1.y;
            _pos_2.y = sinr * _pos_1.x + cosr * _pos_1.y;
            _pos_2  += trajTranslation;
            _rot_2   = _rot_1 + trajRotation;

            bulletPosition = _pos_2;
            bulletRotation = _rot_2;
        }