I want to find a new position once the old one is found and I’m not sure how to check for that.
This is kind of what i’ve thought of so far.
void Start ()
{
transform.position = new Vector3(0, 2, -4);
}
// Update is called once per frame
void Update ()
{
//check if position is found here or something.
}
void FindNewPosition() //might need to do an output parameter?
{
Vector3 newPosition = new Vector3(Random.Range(-5.0F, 5.0F), 2f, Random.Range(-5.0F, 5.0F));
}
}