mirror of
https://github.com/kou029w/pucchinglgl.git
synced 2025-01-18 16:18:00 +00:00
parent
87e6bd8670
commit
290d3dda6c
1 changed files with 0 additions and 5 deletions
|
@ -36,10 +36,6 @@ function render() {
|
||||||
renderer.render(scene, camera);
|
renderer.render(scene, camera);
|
||||||
}
|
}
|
||||||
|
|
||||||
function vibrate() {
|
|
||||||
if ("vibrate" in navigator) navigator.vibrate(100);
|
|
||||||
}
|
|
||||||
|
|
||||||
function tone(osc: Oscillator) {
|
function tone(osc: Oscillator) {
|
||||||
osc.start();
|
osc.start();
|
||||||
osc.stop("+0.05");
|
osc.stop("+0.05");
|
||||||
|
@ -50,7 +46,6 @@ function drawRect() {
|
||||||
const [intersect] = raycaster.intersectObjects(panels);
|
const [intersect] = raycaster.intersectObjects(panels);
|
||||||
if (!intersect) return;
|
if (!intersect) return;
|
||||||
|
|
||||||
vibrate();
|
|
||||||
try {
|
try {
|
||||||
// FIXME: Error: Start time must be strictly greater than previous start time.
|
// FIXME: Error: Start time must be strictly greater than previous start time.
|
||||||
tone(intersect.object.userData.osc);
|
tone(intersect.object.userData.osc);
|
||||||
|
|
Loading…
Add table
Reference in a new issue