Skip to content

Instantly share code, notes, and snippets.

@vegaslon
vegaslon / entitytagTest.js
Created January 14, 2024 20:14
entityTagTest
(function() { // BEGIN LOCAL_SCOPE
var entities = [];
function getPos(x, y) {
var center = Vec3.sum(MyAvatar.position, Vec3.multiply(6, Quat.getFront(MyAvatar.orientation)));
return Vec3.sum(Vec3.sum(center, Vec3.multiply(Quat.getRight(MyAvatar.orientation), x)), Vec3.multiply(Quat.getUp(MyAvatar.orientation), y));
}
var urls = [ "http://ctrlaltstudio.com/downloads/vircadia-dev/gltf/VertexColors.glb" ];
@vegaslon
vegaslon / Mousecapturewithm.js
Created September 3, 2020 15:32
Mouselook and capture look with M
(function() { // BEGIN LOCAL_SCOPE
var oldMode;
Controller.keyPressEvent.connect(function(event) {
if (event.text === 'm') {
if (!Camera.getCaptureMouse()){
oldMode = Camera.mode;
Camera.mode = "first person";

Keybase proof

I hereby claim:

  • I am vegaslon on github.
  • I am vegaslon (https://keybase.io/vegaslon) on keybase.
  • I have a public key ASAS0Dt9s7Dd54Gnj_QxaGU4URMRqdQKfwAYsnb7sICGUAo

To claim this, I am signing this object: