camera_roll¶
type: "camera_roll"
Tilts the camera around its viewing axis by a fixed angle (dutch angle) with an optional slow wobble.
Fields¶
Camera effects also accept the shared definition fields (
duration,easing,loop,persistent,fade_ticks,sound).
| Field | Type | Default | Meaning |
|---|---|---|---|
angle |
float | 15 (fades to 0) | Roll in degrees; positive = clockwise lean |
wobble |
float | 0 | Sinusoidal sway of ± this many degrees (0..45) |
wobble_speed |
float | 0.2 | Sway frequency, Hz (0..2) |
Example¶
{
"type": "camera_roll",
"duration": 60,
"params": { "angle": 15, "wobble": 0, "wobble_speed": 0.2 }
}
Code¶
Its datapack definition:
{
"type": "camera_roll",
"duration": 160,
"easing": "ease_in_out_cubic",
"persistent": true,
"loop": true,
"fade_ticks": 12,
"params": {
"angle": {
"keyframes": [
{
"time": 0,
"value": -10.0
},
{
"time": 80,
"value": 10.0
},
{
"time": 160,
"value": -10.0
}
]
},
"wobble": 0.0,
"wobble_speed": 0.2
}
}