mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
updated growing plant
This commit is contained in:
parent
182e05e125
commit
c74b71aa37
2 changed files with 4 additions and 1 deletions
|
@ -32,5 +32,5 @@ function createTidyGuy() {
|
|||
var tidyGuy = createTidyGuy();
|
||||
|
||||
Script.scriptEnding.connect(function() {
|
||||
Entities.deleteEntity(tidyGuy);
|
||||
// Entities.deleteEntity(tidyGuy);
|
||||
})
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue