Ok, so I know that “transform.forward” moves an object along its Z axis, and “transform.up” along its Y, but what do I type to move an object along its X axis?
transform.right
Or use Vector3(x,y,z).
These are simply directions though and do not themselves perform movement.
function Update() {
// Move the object to the right relative to the camera 1 unit/second.
transform.Translate(Time.deltaTime, 0, 0, Camera.main.transform);
}