예제 #1
0
        public void Trace(Vector3 inputStart, Vector3 inputEnd)
        {
            _inputStart = inputStart;
            _inputEnd   = inputEnd;
            file        = renderer.BspFile;

            outputStartsOut = true;
            outputAllSolid  = false;
            outputFraction  = 1.0f;

            // walks in the bsp tree
            CheckNode(0, 0.0f, 1.0f, inputStart, inputEnd);

            if (outputFraction == 1.0f)
            {
                outputEnd = inputEnd; // nothing blocked it
            }
            else
            {
                outputEnd = inputStart + outputFraction * (inputEnd - inputStart);
            }
        }
예제 #2
0
        public override void Initialize()
        {
            file = new BspFile(Path);

            base.Initialize();
        }