﻿using UnityEngine;

public class Island : MonoBehaviour {

    public float sizeFactor = 4;

    //public Vector3 splinePoint { get { return transform.position + transform.right * rightFactor; } }
    //public Vector3 splineSmoothPoint { get { return transform.position - transform.forward * smoothingFactor; } }

    public Vector3 GetSplinePoint(bool right)
    {
        return transform.position + transform.right * (right ? 1 : -1) * sizeFactor - transform.forward * sizeFactor*.75f;
    }

    public Vector3 GetSplineSmoothPoint(bool isFirstIsland)
    {
        return transform.position - transform.forward * (isFirstIsland ? -1 : 1) * sizeFactor * 3;
    }
}
