mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 19:07:51 +02:00
add down velocity to shelfy things
This commit is contained in:
parent
577142a4d1
commit
9f4289ae1b
1 changed files with 18 additions and 0 deletions
|
@ -254,6 +254,7 @@ StuffOnShelves = function(spawnLocation, spawnRotation) {
|
||||||
print('CREATE STUFF ON SHELVES');
|
print('CREATE STUFF ON SHELVES');
|
||||||
var created = [];
|
var created = [];
|
||||||
|
|
||||||
|
|
||||||
function create() {
|
function create() {
|
||||||
var success = Clipboard.importEntities(STUFF_ON_SHELVES_URL);
|
var success = Clipboard.importEntities(STUFF_ON_SHELVES_URL);
|
||||||
if (success === true) {
|
if (success === true) {
|
||||||
|
@ -268,6 +269,8 @@ StuffOnShelves = function(spawnLocation, spawnRotation) {
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
create();
|
create();
|
||||||
|
|
||||||
this.cleanup = cleanup;
|
this.cleanup = cleanup;
|
||||||
|
@ -300,11 +303,26 @@ Bricabrac = function(spawnLocation, spawnRotation) {
|
||||||
print('HOME CREATE BRICABRAC');
|
print('HOME CREATE BRICABRAC');
|
||||||
var created = [];
|
var created = [];
|
||||||
|
|
||||||
|
function addVelocityDown() {
|
||||||
|
print('HOME ADDING DOWN VELOCITY TO DRESSING ROOM ITEMS')
|
||||||
|
created.forEach(function(obj) {
|
||||||
|
Entities.editEntity(obj, {
|
||||||
|
velocity: {
|
||||||
|
x: 0,
|
||||||
|
y: -0.1,
|
||||||
|
z: 0
|
||||||
|
}
|
||||||
|
});
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
function create() {
|
function create() {
|
||||||
var success = Clipboard.importEntities(BRICABRAC_URL);
|
var success = Clipboard.importEntities(BRICABRAC_URL);
|
||||||
if (success === true) {
|
if (success === true) {
|
||||||
created = Clipboard.pasteEntities(spawnLocation)
|
created = Clipboard.pasteEntities(spawnLocation)
|
||||||
print('created ' + created);
|
print('created ' + created);
|
||||||
|
addVelocityDown();
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue