camera_stop
Stops camera motion (a transition, inertia, a damping residual) at the live pose, or with to: 'goal' at the running transition's goal; the transition then settles as stopped.
Usage
surface.execute('camera_stop', { to?, viewport? })Parameters
to"live" | "goal"viewportstringthe slot (viewport id); the first by default
Returns
object with eye, target, up, projection, in the ok: true envelope.
{
"type": "object",
"properties": {
"eye": {
"type": "object",
"description": "f64 world-space point or direction",
"properties": {
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"z": {
"type": "number"
}
},
"required": [
"x",
"y",
"z"
]
},
"target": {
"type": "object",
"description": "f64 world-space point or direction",
"properties": {
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"z": {
"type": "number"
}
},
"required": [
"x",
"y",
"z"
]
},
"up": {
"type": "object",
"description": "f64 world-space point or direction",
"properties": {
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"z": {
"type": "number"
}
},
"required": [
"x",
"y",
"z"
]
},
"projection": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"perspective",
"orthographic"
]
},
"fovYDeg": {
"type": "number"
},
"height": {
"type": "number"
}
},
"required": [
"kind"
]
}
},
"required": [
"eye",
"target",
"up",
"projection"
]
}