Ejemplo n.º 1
0
        public MyElement(uint id)
        {
            m_id = id;

            Flags             = MyElementFlag.EF_AABB_DIRTY;
            m_aabb            = new BoundingBoxD();
            m_proxyData       = PROXY_UNASSIGNED;
            m_shadowProxyData = PROXY_UNASSIGNED;
        }
Ejemplo n.º 2
0
 public MyElement(uint id)
 {
     m_id = id;
     
     Flags = MyElementFlag.EF_AABB_DIRTY;
     m_aabb = new BoundingBoxD();        
     m_proxyData = PROXY_UNASSIGNED;
     m_shadowProxyData = PROXY_UNASSIGNED;
 }
Ejemplo n.º 3
0
        public MyElement()
        {            
            m_Matrix = Matrix.Identity;
            m_CollisionLayer = 0;
            Flags = MyElementFlag.EF_AABB_DIRTY;
            m_AABB = new BoundingBox();        
            m_ProxyData = PROXY_UNASSIGNED;
            m_ShadowProxyData = PROXY_UNASSIGNED;

            m_Guid = GUID_COUNTER;

            if (GUID_COUNTER == int.MaxValue)
            {
                GUID_COUNTER = 0;
            }
            GUID_COUNTER++;
        }
Ejemplo n.º 4
0
        public MyElement()
        {
            m_Matrix          = Matrix.Identity;
            m_CollisionLayer  = 0;
            Flags             = MyElementFlag.EF_AABB_DIRTY;
            m_AABB            = new BoundingBox();
            m_ProxyData       = PROXY_UNASSIGNED;
            m_ShadowProxyData = PROXY_UNASSIGNED;

            m_Guid = GUID_COUNTER;

            if (GUID_COUNTER == int.MaxValue)
            {
                GUID_COUNTER = 0;
            }
            GUID_COUNTER++;
        }
Ejemplo n.º 5
0
 /// <summary>
 /// Update of aabb if necessary, implementation in shape elements
 /// </summary>
 public virtual void UpdateWorldAABB()
 {
     Flags &= ~MyElementFlag.EF_AABB_DIRTY;
 }
Ejemplo n.º 6
0
        public MyElementFlag Flags;// { get { return m_flags; } }

        /// <summary>
        /// Update of aabb if necessary, implementation in shape elements
        /// </summary>
        public virtual void UpdateAABB()
        {
            Flags &= ~MyElementFlag.EF_AABB_DIRTY;
        }