Exemple #1
0
        //  Calculates intersection of line with any triangleVertexes in this model instance. Closest intersection and intersected triangleVertexes will be returned.

        //  Lazy-load for cockpit glass, because it's needed only for ship controlled by a player
        public MyCockpitGlassEntity GetShipCockpitGlass()
        {
            if (m_glassIdealPhysObject == null)
            {
                m_glassIdealPhysObject = new MyCockpitGlassEntity();
                m_glassIdealPhysObject.Init(null, CockpitGlassModelEnum, null, this, null, null);
            }
            return m_glassIdealPhysObject;
        }