/// <summary> /// when a volume moves we have to update the AABB and then update the tree /// </summary> public override void MoveVolume(MyElement element) { if (element.ProxyData == MyElement.PROXY_UNASSIGNED) { return; } element.UpdateAABB(); BoundingBox aabb = element.GetWorldSpaceAABB(); m_DAABBTree.MoveProxy(element.ProxyData, ref aabb, Vector3.Zero); }
/// <summary> /// when a volume moves we have to update the AABB and then update the tree /// </summary> public override void MoveVolume(MyElement element) { if (element.ProxyData == MyElement.PROXY_UNASSIGNED) { return; } element.UpdateAABB(); BoundingBox aabb = element.GetWorldSpaceAABB(); m_DAABBTree.MoveProxy(element.ProxyData,ref aabb, Vector3.Zero); }