Skip to content

Commit 66b372a

Browse files
committed
update readme
1 parent 2d2c311 commit 66b372a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ const Cursor3D = withProjectedPosition()(({positionProjected, projectionResult})
340340
341341
```
342342

343-
It's recommended that you specify a transition duration (0.1s works nice), as the position gets updated rapidly, but slightly throttled.
343+
It's recommended that you specify a transition duration (0.1s works nice), as the position gets updated rapidly, but slightly throttled.
344344

345345
Now you can use your 3D cursor like this:
346346

@@ -370,6 +370,8 @@ If you don't have the id, but want to place the cursor on a certain plane (e.g.
370370
371371
```
372372

373+
You can also add a property `onProjectedPosition` to your cursor which will be called with the hit result on every frame
374+
373375
It uses https://developer.apple.com/documentation/arkit/arframe/2875718-hittest with some default options. Please file an issue or send a PR if you need more control over the options here!
374376

375377
##### Attach to a given 3D object

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "git",
55
"url": "https://github.com/HippoAR/react-native-arkit.git"
66
},
7-
"version": "0.4.0",
7+
"version": "0.4.1",
88
"description": "React Native binding for iOS ARKit",
99
"author": "Zehao Li <qft.gtr@gmail.com>",
1010
"license": "MIT",

0 commit comments

Comments
 (0)