public MyElement(uint id) { m_id = id; Flags = MyElementFlag.EF_AABB_DIRTY; m_aabb = new BoundingBoxD(); m_proxyData = PROXY_UNASSIGNED; m_shadowProxyData = PROXY_UNASSIGNED; }
public MyElement(uint id) { m_id = id; Flags = MyElementFlag.EF_AABB_DIRTY; m_aabb = new BoundingBoxD(); m_proxyData = PROXY_UNASSIGNED; m_shadowProxyData = PROXY_UNASSIGNED; }
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++; }
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++; }
/// <summary> /// Update of aabb if necessary, implementation in shape elements /// </summary> public virtual void UpdateWorldAABB() { Flags &= ~MyElementFlag.EF_AABB_DIRTY; }
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; }