This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.currentOp().inprog.forEach( | |
function(op) { | |
if(op.secs_running > 5) printjson(op); | |
} | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// BetterClientSimulationBotFromRecording.js | |
// examples | |
// | |
// Created by Brad Hefta-Gaub on 2/6/17. | |
// Copyright 2017 High Fidelity, Inc. | |
// | |
// Distributed under the Apache License, Version 2.0. | |
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// bot.js | |
// examples | |
// | |
// Created by Stephen Birarda on 2/20/14. | |
// Modified by Philip on 3/3/14 | |
// Copyright 2014 High Fidelity, Inc. | |
// | |
// This is an example script that demonstrates an NPC avatar. | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var testStep = 0; | |
var simpleBox = { | |
type: "Box", | |
color: { | |
red: 255, | |
blue: 0, | |
green: 0 | |
}, | |
localPosition: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// BetterClientSimulationBotFromRecording.js | |
// examples | |
// | |
// Created by Brad Hefta-Gaub on 2/6/17. | |
// Copyright 2017 High Fidelity, Inc. | |
// | |
// Distributed under the Apache License, Version 2.0. | |
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// BetterClientSimulationBotFromRecording.js | |
// examples | |
// | |
// Created by Brad Hefta-Gaub on 2/6/17. | |
// Copyright 2017 High Fidelity, Inc. | |
// | |
// Distributed under the Apache License, Version 2.0. | |
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
768542da9a7647899e933152a81e37453fa1da6e refs/tags/RELEASE-4503 | |
eb445e7f01dd02af57ed847aeaaf08ee666d36b0 refs/tags/RELEASE-4504 | |
28a19e59d989577c17be5f8b1d1d59bb78cd7f38 refs/tags/RELEASE-4505 | |
66cf24461224f279951ed7ce41f81b12e8c68a52 refs/tags/RELEASE-4506 | |
d2e688dfb2aa5561fe2cf31e42dcc7614c145030 refs/tags/RELEASE-4507 | |
3bb057cef0e8642249e6ae9c9159eb1264379990 refs/tags/RELEASE-4508 | |
7d6cc597ba812635e204dfcd881d44dff6f4fce6 refs/tags/RELEASE-4509 | |
a60a82de81a90515d2ad765953f4d465bdc03793 refs/tags/RELEASE-4511 | |
fb6a2f8b63905a71b81c62a528c3cbe2265f457c refs/tags/RELEASE-4512 | |
45fbca92b594232303eac4f56f4ac56fc165ec10 refs/tags/RELEASE-4513 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getRandomFloat(min, max) { | |
return Math.random() * (max - min) + min; | |
} | |
Agent.isAvatar = true; | |
Avatar.position = { x: getRandomFloat(0, 5), y: 0, z: 0.0 }; | |
Avatar.displayName = "Matthew"; | |
Avatar.skeletonModelURL = "http://mpassets.highfidelity.com/f3fbb9f4-e159-49ed-ac32-03af9056b17e-v1/matthew.fst" | |
var yaw = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var updates = 0; | |
Script.update.connect(function(){ | |
if (updates++ >= 150) { | |
Script.stop(); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
return { | |
preload: function(entityID) { | |
print("Preload 1: ", entityID); | |
this.entityID = entityID; | |
}, | |
unload: function() { | |
print("Unload 1: ", this.entityID); | |
} | |
} |
NewerOlder