Skip to content

Commit

Permalink
was going to add a fix fror the car issue, did not
Browse files Browse the repository at this point in the history
closes #4 , it's not a bug, it's a feature
  • Loading branch information
Johnsmith0508 committed Nov 13, 2015
1 parent 5cf240c commit bf7ae89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.js
Expand Up @@ -75,9 +75,9 @@ io.on('connection', function(socket) {
rotZ: User[userName].rotZ
});
});
socket.on('imaCar',function(){
socket.on('iamacar',function(){
User[userName].rotX = -Math.PI / 2;
User[userName].rotY = -Math.PI / 2;
//User[userName].rotY = -Math.PI / 2;
});
socket.on('user', function(user) {
console.log(user.name + " connected sid: " + socket.id+" and wants model: "+ user.model);
Expand Down
1 change: 1 addition & 0 deletions client.js
Expand Up @@ -260,6 +260,7 @@ var submitHandler = function(e)
user[userName] = new THREE.Mesh(carMesh,carMaterial);
user[userName].scale.set(0.6,0.6,0.6);
user[userName].rotateX(-Math.PI/2);
//socket.emit('iamacar',true);
}else{
user[userName] = new THREE.Mesh(geometry, clientMaterial);
}
Expand Down

0 comments on commit bf7ae89

Please sign in to comment.