# How do I position my "2.5D" camera differently

I have a this code attached to my camera targeting my player. It looks at it from a 90 degree angle. I want to move the camera up and back a little. I would I do this? Very knew to coding!

using UnityEngine;
using System.Collections;

public class GameCamera : MonoBehaviour {

``````private Transform target;
public float trackSpeed = 25;

// Set target
public void SetTarget(Transform t) {
target = t;
transform.position = new Vector3(t.position.x,t.position.y,transform.position.z);
}

// Track target
void LateUpdate() {
if (target) {
float x = IncrementTowards(transform.position.x, target.position.x, trackSpeed);
float y = IncrementTowards(transform.position.y, target.position.y, trackSpeed);
transform.position = new Vector3(x,y, transform.position.z);
}
}

// Increase n towards target by speed
private float IncrementTowards(float n, float target, float a) {
if (n == target) {
return n;
}
else {
float dir = Mathf.Sign(target - n); // must n be increased or decreased to get closer to target
n += a * Time.deltaTime * dir;
return (dir == Mathf.Sign(target-n))? n: target; // if n has now passed target then return target, otherwise return n
}
}
``````

}

Line 15 would need changes, it looks like the z position will stay as whatever you move the camera to at the start, so you just change that in the editor as you would normally.

As for the y value you need to add some offset (I have added 5 to the height):

``````float y = IncrementTowards(transform.position.y, target.position.y + 5, trackSpeed);
``````

Hope that helps,

Scribe