How to move gameobjects using the world position?

So, I’m trying to figure out how to write a script which will be able to detect when game objects are in a certain world position, to transform those game objects and move them up by say 1.

Hope that makes sense, if not please ask and I’ll try my best to explain in further detail. Really would appreciate any help.

You can either do what @doublemax above said or if you don’t want to use Triggers then use position detection.

So lets say for example we create a new Vector3 (or2 if this is 2D).
so example

public Vector3 positionToFind = new Vector3(100,100,100);

void Update(){
if(transform.position = positionToFind){
// Do something.


Excellent suggestions! Will be giving them a go immediately :slight_smile: Thank you