Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
README.md | 2017-12-21 | 1.2 kB | |
Version 0.7.tar.gz | 2017-12-21 | 333.1 kB | |
Version 0.7.zip | 2017-12-21 | 356.9 kB | |
Totals: 3 Items | 691.3 kB | 0 |
New Features
- Textures! Normal Maps! And more! (experimental) See this PR and the readme section: https://github.com/HippoAR/react-native-arkit/pull/121 thx @bnjm
onARKitError
on<ARKit />
component now reports when ArKit could not be initialized, e.g. because the camera access was denied.onPlaneRemoved
on<ARKit />
now is called when a detected plane has been removed (ArKit sometimes replaces detected planes entirely- new property
origin={{position, transition}}
on<ARKit />
. Setting this property to a certain position shifts the whole coordinate system to that point. This is usefull if you always want to align everything to the floor, so any object with y-coordinate equals 0 will be exactly at the floor. E.g. useonPlaneUpdate
to get detected planes and set origin to the plane with the lowest y coordinate. Usetransition
to animate that change ARKit.hitTestSceneObjects
andARKit.hitTestPlanes
respect the neworigin
property. Every reportedposition
is relative to that origin. UsepositionAbsolute
to get the original, absolute position.- detected planes have now also new properties
position
(which wasnode
before),positionAbsolute
andeulerAngles