object typo

This commit is contained in:
James B. Pollack 2016-03-27 14:32:08 -07:00
parent 816873204a
commit a8ec78ed2f
2 changed files with 5 additions and 6 deletions

View file

@ -76,7 +76,7 @@
rotation: rotatorProps.rotation,
userData: JSON.stringify({
'grabbableKey': {
'grabbable:', false
'grabbable': false
},
'hifiHomeKey': {
'reset': true

View file

@ -431,7 +431,6 @@
var data = {
fishLoaded: true,
innerContainer: _this.userData['hifi-home-fishtank'].innerContainer,
}
setEntityCustomData(FISHTANK_USERDATA_KEY, _this.entityID, data);
_this.userData['hifi-home-fishtank'].fishLoaded = true;
@ -519,7 +518,7 @@
y: properties.position.y,
z: properties.position.z
};
var othersCounted = 0;
for (var j = 0; j < fish.length; j++) {
@ -588,8 +587,8 @@
var primePosition = tankXForm.xFormPoint(position);
var primeVelocity = tankXForm.xFormVector(velocity);
// Orient in direction of velocity
var rotation = Quat.rotationBetween(Vec3.UNIT_NEG_Z, primeVelocity);
// Orient in direction of velocity
var rotation = Quat.rotationBetween(Vec3.UNIT_NEG_Z, primeVelocity);
var mixedRotation = Quat.mix(properties.rotation, rotation, VELOCITY_FOLLOW_RATE);
@ -626,7 +625,7 @@
Entities.editEntity(fish[i], {
position: primePosition,
velocity: primeVelocity,
rotation: finalQuat
rotation: finalQuat
});
}
}