MCPcopy Create free account
hub / github.com/AI-FanGe/OpenAIglasses_for_Navigation / createDirectionLabels

Function createDirectionLabels

static/main.js:495–504  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

493 scene.add(createScale());
494
495 function createDirectionLabels() {
496 [
497 { t: '前', p: new THREE.Vector3(0, 0, 5), c: '#00ffff' },
498 { t: '后', p: new THREE.Vector3(0, 0,-5), c: '#00ffff' },
499 { t: '左', p: new THREE.Vector3(-5,0, 0), c: '#ffff00' },
500 { t: '右', p: new THREE.Vector3( 5,0, 0), c: '#ffff00' },
501 { t: '上', p: new THREE.Vector3(0, 5, 0), c: '#ff00ff' },
502 { t: '下', p: new THREE.Vector3(0,-5, 0), c: '#ff00ff' },
503 ].forEach(d => scene.add(createAxisLabel(d.t, d.p, d.c)));
504 }
505 createDirectionLabels();
506
507 camera.position.set(4,4,6);

Callers 1

main.jsFile · 0.85

Calls 1

createAxisLabelFunction · 0.85

Tested by

no test coverage detected