MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / copyHead

Method copyHead

src/main/java/trace/graphics/remote/Space.kt:45–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43n.send("songbird.setListenerOrientation(0,1,0, 0,0,1)")
44
45
46_.orientation = (origin, forward, up) => {
47_.send(`songbird.setListenerPosition(${origin.x}, ${origin.y}, ${origin.z}); songbird.setListenerOrientation(${forward.x},${forward.y},${forward.z},${up.x},${up.y},${up.z})`)
48}
49
50
51_.source = (num, angle, radius, d, h) => {
52
53 var x0 = Math.sin(Math.PI*(angle-d)/180)*radius
54 var y0 = h
55 var z0 = Math.cos(Math.PI*(angle-d)/180)*radius
56 var x1 = Math.sin(Math.PI*(angle+d)/180)*radius
57 var y1 = h
58 var z1 = Math.cos(Math.PI*(angle+d)/180)*radius

Callers

nothing calls this directly

Calls 4

vrViewerPositionMethod · 0.80
vrGazeDirectionMethod · 0.80
vrViewerUpMethod · 0.80
executeMethod · 0.65

Tested by

no test coverage detected