updated growing plant

This commit is contained in:
ericrius1 2016-03-30 16:10:31 -07:00
parent 182e05e125
commit c74b71aa37
2 changed files with 4 additions and 1 deletions

View file

@ -32,5 +32,5 @@ function createTidyGuy() {
var tidyGuy = createTidyGuy();
Script.scriptEnding.connect(function() {
Entities.deleteEntity(tidyGuy);
// Entities.deleteEntity(tidyGuy);
})

View file

@ -12,6 +12,7 @@
var PLANT_SCRIPT_URL = Script.resolvePath("atp:/growingPlant/growingPlantEntityScript.js");
var WATER_CAN_SCRIPT_URL = Script.resolvePath("atp:/growingPlant/waterCanEntityScript.js");
Plant = function(spawnPosition, spawnRotation) {
print("EBL PLANT CONSTRUCTOR!")
var orientation;
if (spawnRotation !== undefined) {
orientation = Quat.fromPitchYawRollDegrees(spawnRotation.x, spawnRotation.y, spawnRotation.z);
@ -31,6 +32,7 @@ Plant = function(spawnPosition, spawnRotation) {
type: "Model",
modelURL: BOWL_MODEL_URL,
dimensions: bowlDimensions,
dynamic: true,
shapeType: 'compound',
compundShapeURL: BOWL_COLLISION_HULL_URL,
name: "plant bowl",
@ -43,6 +45,7 @@ Plant = function(spawnPosition, spawnRotation) {
});
var PLANT_MODEL_URL = "atp:/growingPlant/Flowers-Rock.fbx";
var plantDimensions = {