mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 16:58:09 +02: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();
|
var tidyGuy = createTidyGuy();
|
||||||
|
|
||||||
Script.scriptEnding.connect(function() {
|
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 PLANT_SCRIPT_URL = Script.resolvePath("atp:/growingPlant/growingPlantEntityScript.js");
|
||||||
var WATER_CAN_SCRIPT_URL = Script.resolvePath("atp:/growingPlant/waterCanEntityScript.js");
|
var WATER_CAN_SCRIPT_URL = Script.resolvePath("atp:/growingPlant/waterCanEntityScript.js");
|
||||||
Plant = function(spawnPosition, spawnRotation) {
|
Plant = function(spawnPosition, spawnRotation) {
|
||||||
|
print("EBL PLANT CONSTRUCTOR!")
|
||||||
var orientation;
|
var orientation;
|
||||||
if (spawnRotation !== undefined) {
|
if (spawnRotation !== undefined) {
|
||||||
orientation = Quat.fromPitchYawRollDegrees(spawnRotation.x, spawnRotation.y, spawnRotation.z);
|
orientation = Quat.fromPitchYawRollDegrees(spawnRotation.x, spawnRotation.y, spawnRotation.z);
|
||||||
|
@ -31,6 +32,7 @@ Plant = function(spawnPosition, spawnRotation) {
|
||||||
type: "Model",
|
type: "Model",
|
||||||
modelURL: BOWL_MODEL_URL,
|
modelURL: BOWL_MODEL_URL,
|
||||||
dimensions: bowlDimensions,
|
dimensions: bowlDimensions,
|
||||||
|
dynamic: true,
|
||||||
shapeType: 'compound',
|
shapeType: 'compound',
|
||||||
compundShapeURL: BOWL_COLLISION_HULL_URL,
|
compundShapeURL: BOWL_COLLISION_HULL_URL,
|
||||||
name: "plant bowl",
|
name: "plant bowl",
|
||||||
|
@ -43,6 +45,7 @@ Plant = function(spawnPosition, spawnRotation) {
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var PLANT_MODEL_URL = "atp:/growingPlant/Flowers-Rock.fbx";
|
var PLANT_MODEL_URL = "atp:/growingPlant/Flowers-Rock.fbx";
|
||||||
|
|
||||||
var plantDimensions = {
|
var plantDimensions = {
|
||||||
|
|
Loading…
Reference in a new issue