2
from bee.segments import *
3
from libcontext.socketclasses import *
4
from libcontext.pluginclasses import *
8
When triggered, the view actuator sets the other view matrix for the "relative" and "offset" view modes
9
The view matrix is first converted to world coordinates; it is not automatically updated when the input matrix changes
13
"autocreate" : {"idmode" : "bound"},
17
f.idmode.name = "ID mode"
18
f.idmode.advanced = True
19
f.idmode.type = "option"
20
f.idmode.options = "unbound", "bound"
21
f.idmode.default = "bound"
22
f.idmode.optiontitles = "Unbound", "Bound"
24
def __new__(cls, idmode):
25
assert idmode in ("bound", "unbound"), idmode
26
class view(bee.worker):
29
if idmode == "unbound":
30
identifier = antenna("pull", ("str", "identifier"))
32
mode = variable("str")
35
trig = antenna("push", "trigger")
36
view = antenna("pull", ("object", "matrix"))
41
f.mode.type = "option"
42
f.mode.default = "relative"
43
f.mode.options = "relative", "offset"
44
f.mode.optiontitles = "Relative", "Offset"
47
"trig" : {"name": "Trigger"},
48
"identifier" : {"name": "Identifier", "fold" : True},
49
"_memberorder" : ["identifier", "trig"]
53
raise NotImplementedError("sparta.actuators.view has not been implemented yet")
b'\\ No newline at end of file'