/struck

Percussive action with 3D physics.

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

Struck

Percussive action with 3D physics.

PWA

https://web.dev/learn/pwa/

https://www.freecodecamp.org/news/build-a-pwa-from-scratch-with-html-css-and-javascript/

https://www.npmjs.com/package/vite-plugin-pwa
https://github.com/antfu/vite-plugin-pwa
https://vite-plugin-pwa.netlify.app/guide/

https://firt.dev/pwa-design-tips/#notch-and-iphone-x-support

Blue: #3778AF

Fix

In node_modules/@enable3d/ammo-physics/dist/physics.js on line 18

import { createHACDShapes, createHullShape, createTriMeshShape, createVHACDShapes, iterateGeometries } from './three-to-ammo';

Shoot objects in direction

https://github.com/mrdoob/three.js/blob/master/examples/physics_ammo_volume.html

Inspect localhost on iPhone

  1. Start project with yarn vite -host instead of just yarn vite.
  2. Connect iPhone to Macbook with cable.
  3. System Preferences > Network > IP Address, 10.0.1.3 for example.
  4. iPhone Safari, go to URL with port, http://10.0.1.3:5173
  5. Macbook Safari, Develop > [Phone name] > [IP number]