Skip to content

Instantly share code, notes, and snippets.

View addy1997's full-sized avatar
🎯
Focusing

Adwait Naik addy1997

🎯
Focusing
View GitHub Profile
AFRAME.registerComponent('pressable', {
schema: {
pressDistance: {
default: 0.06
}
},
init: function() {
this.worldPosition = new THREE.Vector3();
this.handEls = document.querySelectorAll('[hand-tracking-controls]');