Skip to content

Commit 21dee3d

Browse files
committed
hit testing example
1 parent 70e0936 commit 21dee3d

File tree

43 files changed

+893
-237
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+893
-237
lines changed

.github/workflows/static.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
mkdir -p public/examples/layers
5050
mkdir -p public/examples/secondary-input-sources
5151
mkdir -p public/examples/editor
52+
mkdir -p public/examples/hit-testing
5253
cp -r ./examples/minecraft/dist/* ./public/examples/minecraft
5354
cp -r ./examples/pingpong/dist/* ./public/examples/pingpong
5455
cp -r ./examples/rag-doll/dist/* ./public/examples/rag-doll
@@ -58,6 +59,7 @@ jobs:
5859
cp -r ./examples/layers/dist/* ./public/examples/layers
5960
cp -r ./examples/secondary-input-sources/dist/* ./public/examples/secondary-input-sources
6061
cp -r ./examples/editor/dist/* ./public/examples/editor
62+
cp -r ./examples/hit-testing/dist/* ./public/examples/hit-testing
6163
6264
- name: Upload Artifact
6365
uses: actions/upload-artifact@v4

examples/demo-controller/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"dependencies": {
3-
"@pmndrs/xr": "workspace:^",
3+
"@pmndrs/xr": "workspace:~",
44
"@react-three/uikit": "^0.5.3",
5-
"@react-three/xr": "workspace:^"
5+
"@react-three/xr": "workspace:~"
66
},
77
"scripts": {
88
"dev": "vite --host"

examples/editor/app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const useSceneStore = create(() => ({
8686

8787
const cameraStore = createScreenCameraStore({ yaw: 0, distance: 0.5 })
8888

89-
const store = createXRStore()
89+
const store = createXRStore({ emulate: { syntheticEnvironment: false } })
9090

9191
const buttonStyles: CSSProperties = {
9292
background: 'white',

examples/editor/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"dependencies": {
3-
"@pmndrs/handle": "workspace:^",
4-
"@pmndrs/pointer-events": "workspace:^",
5-
"@react-three/handle": "workspace:^",
6-
"@react-three/xr": "workspace:^",
3+
"@pmndrs/handle": "workspace:~",
4+
"@pmndrs/pointer-events": "workspace:~",
5+
"@react-three/handle": "workspace:~",
6+
"@react-three/xr": "workspace:~",
77
"meshline": "^3.3.1",
88
"postprocessing": "^6.36.6",
99
"zustand": "^4.5.2"

examples/handheld-ar/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"dependencies": {
3-
"@react-three/xr": "workspace:^"
3+
"@react-three/xr": "workspace:~"
44
},
55
"scripts": {
66
"dev": "vite --host"

examples/handle-vanilla/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"dependencies": {
3-
"@pmndrs/pointer-events": "workspace:^",
4-
"@pmndrs/handle": "workspace:^"
3+
"@pmndrs/pointer-events": "workspace:~",
4+
"@pmndrs/handle": "workspace:~"
55
},
66
"scripts": {
77
"dev": "vite"

examples/handle/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"dependencies": {
33
"@dimforge/rapier3d-compat": "^0.14.0",
4-
"@pmndrs/handle": "workspace:^",
5-
"@pmndrs/pointer-events": "workspace:^",
6-
"@react-three/handle": "workspace:^",
4+
"@pmndrs/handle": "workspace:~",
5+
"@pmndrs/pointer-events": "workspace:~",
6+
"@react-three/handle": "workspace:~",
77
"@react-three/rapier": "^1.5.0",
8-
"@react-three/xr": "workspace:^"
8+
"@react-three/xr": "workspace:~"
99
},
1010
"scripts": {
1111
"dev": "vite --host"

examples/hit-test-anchor/app.tsx

Lines changed: 0 additions & 143 deletions
This file was deleted.

examples/hit-test-anchor/package.json

Lines changed: 0 additions & 9 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)