# touch_prim_coord

Touches a prim in-world by using its coordinates.

This command tries to locate the object with specific coordinates, and touches it. The approximate coordinates may be given, with a specified precision.

```snippet http-api-variables-OmJyUigTgO
```

```snippet http-api-input-basic-parameters-5FcVlaJbq0 action="touch_prim_coord"
```

```snippet http-api-input-q5yvAagqsZ
x         | yes      | the X coordinate (integer or float)
y         | yes      | the Y coordinate (integer or float)
z         | yes      | the Z coordinate (integer or float)
precision | optional | the precision. Default 0.5 meters
```

```snippet http-api-output-JAwUcmg7i7
```

# Comments

This command tries to find a prim somewhere close to the given coordinates. The precision can be set manually.

The default precision 0.5 meters. This means that object closer than 0.5 meters will be touched (only one object will be chosen though).

This command implies the same limitations as touch_prim:

* The distance. Bot view range is around 32 meters, so it may not see the object on the other side of the sim.
* The load time. Bot loads its surroundings within a minute after teleporting. Thus, give it 1-2 minutes to load all nearby prims. However, after loading, all new nearby prims are being detected immediately.

# Examples

Bot tries to touch the prim at `<214.5,127,32>` with a precision of 1 meter:

```
action=touch_prim_coord&x=214.5&y=127&z=32&precision=1.0
```

**InstAPI**: See this query in API Test Suite: [click here](https://www.mysmartbots.com/api/testing.html?api=bot&act=touch_prim_coord&key=--your-api-key--&botname=--your-bot-name--&secret=--your-bot-access-code--&param1=x&value1=214.5&param2=y&value2=127&param3=z&value3=32&param4=precision&value4=1.0)