added first couple objects

This commit is contained in:
TJ
2026-06-11 09:16:29 +02:00
parent 7288000ee6
commit 71c21cf536
6 changed files with 212 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
# 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 110.
### 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
}
```