Skip to content
Snippets Groups Projects
Commit 365bed52 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Use rematrix to set pose

parent a9ecee85
No related branches found
No related tags found
No related merge requests found
Pipeline #26626 passed
......@@ -42,10 +42,10 @@ webserver-deploy:
variables:
NODE_SERVER: '10.0.0.9'
script:
- npm install web-service/server
- npm install web-service
- browserify web-service/public/js/index.js -o web-service/public/js/bundle.js
- rsync -vr --delete web-service/ nodejs@${NODE_SERVER}:/srv/nodejs/web-service
- ssh nodejs@${NODE_SERVER} -- "npm install web-service/server && pm2 restart web-service"
- ssh nodejs@${NODE_SERVER} -- "npm install web-service && pm2 restart web-service"
- doxygen
- rsync -vr --delete doc/ nodejs@${NODE_SERVER}:/srv/nodejs/doc
......
......@@ -7,9 +7,10 @@
"test": "test"
},
"scripts": {
"start": "node src/index.js",
"start": "node server/src/index.js",
"watch": "nodemon src/index.js",
"test": "mocha test"
"test": "mocha test",
"build": "browserify ./public/js/index.js -o ./public/js/bundle.js"
},
"author": "Nicolas Pope",
"license": "ISC",
......@@ -20,6 +21,7 @@
"h264-converter": "^0.1.0",
"mongoose": "^5.7.3",
"msgpack5": "^4.2.1",
"rematrix": "^0.7.0",
"url-parse": "^1.4.7",
"uuid": "^3.3.3"
},
......
Source diff could not be displayed: it is too large. Options to address this: view the blob.
const Peer = require('../../server/src/peer')
const VideoConverter = require('./lib/dist/video-converter');
const msgpack = require('msgpack5')();
const rematrix = require('rematrix');
let current_data = {};
let peer;
......@@ -148,7 +149,8 @@ function FTLStream(peer, uri, element) {
this.outer.appendChild(this.play_button);
this.element.onclick = () => {
let pose = [1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];
//let pose = [1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];
let pose = rematrix.rotateZ(45);
this.setPose(pose);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment