Hi
In my script, Object look at me, where ever i go he look at me. but i need him to move right and left only and not look up or down.
Second, can i reduce the mush of a cube to 50% instead disable or enable it ?
public Transform target;
public Transform point_position;
public Mesh cube_mesh;
public float nearMe;
// Update is called once per frame
void Update () {
gameObject.transform.position = point_position.transform.position;
transform.LookAt(target);
nearMe = Vector3.Distance(gameObject.transform.position,target.transform.position);
if (nearMe <= 2) {
// cube_mesh 50% ?!!
}
}