public Compartment () { aabb = new AABBi(new Vec2i(0,0), new Vec2i(0,0)); color = new Color(UnityEngine.Random.value, UnityEngine.Random.value, UnityEngine.Random.value); isPtr = false; ptrValue = null; }
public void FitAABB(ref AABBi aabb) { bl.x = Mathf.Min(aabb.bl.x, bl.x); bl.y = Mathf.Min(aabb.bl.y, bl.y); tr.x = Mathf.Max(aabb.tr.x, tr.x); tr.y = Mathf.Max(aabb.tr.y, tr.y); }
public ServerVessel() : base(NextIndex++) { aabb = new AABBi(new Vec2i(0,0), new Vec2i(0,0)); interiorExists = false; spaceAddress = 0; chunkCheckTimer.Set(CHUNK_UPDATE_INTERVAL); Vessels.Add(this); }