Пример #1
0
        /// <summary>
        /// Crear nuevo manejador de colsiones
        /// </summary>
        public BspCollisionManager(BspMap bspMap)
        {
            this.bspMap = bspMap;
            this.camera = new Q3FpsCamera();

            jumpSpeed     = 80.0f;
            gravity       = 80.0f;
            maxStepHeight = 40;

            noClip    = false;
            velocidad = new Vector3();
            antCamPos = Vector3.Empty;
            time      = 0;
            firstTime = true;
            playerBB  = new TgcBoundingBox(new Vector3(-20, -60, -20), new Vector3(20, 20, 20));
        }
        /// <summary>
        /// Crear nuevo manejador de colsiones
        /// </summary>
        public BspCollisionManager(BspMap bspMap)
        {
            this.bspMap = bspMap;
            this.camera = new Q3FpsCamera();

            jumpSpeed = 80.0f;
            gravity = 80.0f;
            maxStepHeight = 40;

            noClip = false;
            velocidad = new Vector3();
            antCamPos = Vector3.Empty;
            time = 0;
            firstTime = true;
            playerBB = new TgcBoundingBox(new Vector3(-20, -60, -20), new Vector3(20, 20, 20));
        }