This file contains hidden or 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
"use strict"; | |
// | |
// batchRecord.js | |
// | |
// Horrible Hack, please do not judge me. | |
// | |
(function () { |
This file contains hidden or 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
// https://www.shadertoy.com/view/Md2GRc | |
/* | |
{ | |
"ProceduralEntity": { | |
"shaderUrl": "file:///C:/msys64/home/ajthy/code/hifi/examples/fractal_lines_of_symmetry.glsl", | |
"version": 2, | |
"uniforms": { | |
} | |
} | |
} |
This file contains hidden or 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
-- create the HFUDT protocol | |
p_hfudt = Proto("hfudt", "HFUDT Protocol") | |
-- create fields shared between packets in HFUDT | |
local f_data = ProtoField.string("hfudt.data", "Data") | |
-- create the fields for data packets in HFUDT | |
local f_length = ProtoField.uint16("hfudt.length", "Length", base.DEC) | |
local f_control_bit = ProtoField.uint8("hfudt.control", "Control Bit", base.DEC) | |
local f_reliable_bit = ProtoField.uint8("hfudt.reliable", "Reliability Bit", base.DEC) |
This file contains hidden or 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
// | |
// handshake.ts | |
// | |
/* global Xform */ | |
/* eslint max-len: ["error", 1024, 4] */ | |
/* eslint brace-style: "stroustrup" */ | |
(function () { | |
Script.include("/~/system/libraries/Xform.js"); | |
var ALLOW_LIMB_GRABBING = false; | |
// globals transmitted to and from web app |
This file contains hidden or 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 foo; | |
function leftTriggerClick(value) { | |
print("got here!"); | |
// crash on purpose | |
foo.bar = 10; | |
print("should not get here!"); | |
} | |
var mapping = Controller.newMapping('foo'); | |
mapping.from(Controller.Standard.LTClick).peek().to(leftTriggerClick); |
This file contains hidden or 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
/* global Xform */ | |
Script.include("/~/system/libraries/Xform.js"); | |
var ANIM_VARS = [ | |
"isTalking", | |
"isNotMoving", | |
"isMovingForward", | |
"isMovingBackward", | |
"isMovingRight", | |
"isMovingLeft", |
This file contains hidden or 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
{ | |
"version": "1.0", | |
"root": { | |
"id": "blend", | |
"type": "blendLinear", | |
"data": { | |
"alpha": 0.5 | |
}, | |
"children": [ | |
{ |
This file contains hidden or 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
// | |
// handshake.js | |
// | |
/* global Xform */ | |
/* eslint indent: ["error", 4, { "outerIIFEBody": 0 }] */ | |
/* eslint max-len: ["error", 1024, 4] */ | |
(function() { // BEGIN LOCAL_SCOPE | |
Script.include("/~/system/libraries/Xform.js"); |
This file contains hidden or 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
"use strict"; | |
// | |
// playRecordingAC.js | |
// | |
// Created by David Rowe on 7 Apr 2017. | |
// 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 hidden or 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
// test script to transform controller data from avatar space into sensor space. | |
var VELOCITY_MULTIPLIER = 5.0; | |
var TRIGGER_ON = 0.9; | |
var TRIGGER_OFF = 0.5; | |
var SMOOTH_VELOCITY = 0.9; | |
var SMOOTH_ROTATION = 0.9; | |
var LEFT = 0; | |
var RIGHT = 1; |