public void CompletePosition(CompressedElement prevComplete) { if (rootSendType.IsLBits()) { compPos = compPos.GuessUpperBitsWorld(prevComplete); } // no new position is part of this update - copy the old else if (!rootSendType.IsPosType()) { compPos = prevComplete; } // now handled by the get set rootPos = compPos.DecompressFromWorld(); }
public void CompletePosition(CompressedElement prevComplete) { // no new position is part of this update - copy the old if (rootBitCullLevel == BitCullingLevel.DropAll) { compPos = prevComplete; } else if (rootBitCullLevel > BitCullingLevel.NoCulling) { compPos = compPos.OverwriteUpperBits(prevComplete, WorldVectorCompression.axisRanges, rootBitCullLevel); } // now handled by the get set rootPos = compPos.DecompressFromWorld(); }