This is possible, I wrote exactly what you want before actually, but I lost it.
You pressed a hotkey and it would start tracking whatever object you were looking at. I also used an "offset" so if you wanted to stare at the player's feet, or a specific corner of one brick, it would keep tracking that, instead of the center of the object