mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-08 14:42:09 +02:00
restoring avatarMover app post S3-loss event
This commit is contained in:
parent
c289474909
commit
c1690bcf32
1 changed files with 14 additions and 2 deletions
|
@ -1,6 +1,18 @@
|
|||
var modelURL = "https://s3.amazonaws.com/hifi-public/eric/models/arrow.fbx";
|
||||
var scriptURL = Script.resolvePath('avatarMover.js');
|
||||
var center = Vec3.sum(MyAvatar.position, Vec3.multiply(3, Quat.getFront(Camera.getOrientation())));
|
||||
|
||||
var avatarMover = Entities.addEntity({
|
||||
type: "Model",
|
||||
modelURL: modelURL
|
||||
})
|
||||
modelURL: modelURL,
|
||||
position: center,
|
||||
userData: JSON.stringify({range: 5}),
|
||||
script: scriptURL
|
||||
});
|
||||
|
||||
|
||||
function cleanup() {
|
||||
Entities.deleteEntity(avatarMover);
|
||||
}
|
||||
|
||||
Script.scriptEnding.connect(cleanup);
|
Loading…
Reference in a new issue