38 lines
1.3 KiB
Markdown
38 lines
1.3 KiB
Markdown
# CCTVCamera
|
||
|
||
### Type
|
||
pre-defined
|
||
|
||
### 3D
|
||
The CCTV Camera is a small, dark gray box.
|
||
Origin is at the Center.
|
||
Spawnpoint should be {0,3,0} and its target set so it already points slightly down.
|
||
|
||
### Custom Args:
|
||
| Key | Type | Implemented | Description |
|
||
|---|---|---|---|
|
||
| target | string `"x,y,z"` | ⚠️ (Unity only reads rotation) | World-space look-at point. Could be a moveable object in the future.|
|
||
| fov | float (degrees) | ✔️ | Camera field of view in degrees. Derived in Creator as `zoom * 60`. |
|
||
| grabable | `"true"` / `"false"` | ⚠️ (Unity missing) | Whether the item can be grabbed in-experience (common to all types) |
|
||
|
||
### Special Notes:
|
||
The `target` arg is documented in the database but the `CCTVCameraBehaviour` switch statement does not handle it — the camera's look direction is controlled by the object's `rotation` in the scene.
|
||
In the Creator, `fov = zoom * 60` where zoom is 1–10.
|
||
|
||
### Example:
|
||
|
||
```json
|
||
{
|
||
"position": { "x": 0.0, "y": 3.0, "z": 5.0 },
|
||
"rotation": { "x": 30.0, "y": 0.0, "z": 0.0 },
|
||
"scale": { "x": 1.0, "y": 1.0, "z": 1.0 },
|
||
"type": "pre-defined",
|
||
"resourcename": "CCTVCamera",
|
||
"item-custom-args": [
|
||
{ "argument": "target", "value": "0,0,6" },
|
||
{ "argument": "fov", "value": "140" }
|
||
],
|
||
"item-custom-args-adv": null
|
||
}
|
||
```
|