This commit is contained in:
James B. Pollack 2016-03-17 10:08:44 -07:00
parent fc3bac7fa5
commit 3432e7821f
3 changed files with 5 additions and 5 deletions

View file

@ -121,7 +121,7 @@ FishTank = function(spawnPosition, spawnRotation) {
} }
if (spawnRotation !== undefined) { if (spawnRotation !== undefined) {
tankProperties.rotation = spawnRotation tankProperties.rotation = Quat.fromPitchYawRollDegrees(spawnRotation.x,spawnRotation.y,spawnRotation.z)
} }
fishTank = Entities.addEntity(tankProperties); fishTank = Entities.addEntity(tankProperties);

View file

@ -9,11 +9,11 @@
// Distributed under the Apache License, Version 2.0. // Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Script.include('utils.js');
(function() { (function() {
Script.include('utils.js');
var _this; var _this;
function GrowingPlant() { function GrowingPlant() {

View file

@ -189,7 +189,7 @@
var fruitBowl = new FruitBowl({ var fruitBowl = new FruitBowl({
x: 1105.3185, x: 1105.3185,
y: 460.3221, y: 460.3221,
z: -81.0752 z: -81.2452
}); });
var livingRoomLamp = new LivingRoomLamp({ var livingRoomLamp = new LivingRoomLamp({
@ -236,7 +236,7 @@
var books = new Books({ var books = new Books({
x: 1106.1553, x: 1106.1553,
y: 461.0325, y: 461.0825,
z: -80.4890 z: -80.4890
}); });