Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
359 commits
Select commit Hold shift + click to select a range
5c83152
update dynmaic images
May 11, 2020
5dadd20
add pan gesture
May 19, 2020
ab9fcbb
add arview
May 19, 2020
251d6dc
add maximum numner of touches
May 19, 2020
16a39cd
add maximum numner of touches
May 19, 2020
f891699
update to arview
May 19, 2020
2fea16c
update arview
May 19, 2020
d5faf02
upadte pan handler
May 19, 2020
0b85ac4
update gesture rec
May 19, 2020
de12301
update images
May 19, 2020
5c18215
update images
May 19, 2020
c327d83
update arkit pan
May 19, 2020
9b374f5
update dynmic images
May 19, 2020
f1f826f
update dynamic images
May 19, 2020
b55f227
update dynamic images
May 19, 2020
80db73a
update pan handler
May 19, 2020
894dba5
handle tap
May 20, 2020
3278b73
handle tap
May 20, 2020
13b3e55
handle tap
May 20, 2020
0e7ade2
update pan
May 20, 2020
100d059
update pna
May 20, 2020
8397e18
update pand gesuture names
May 21, 2020
6cb654f
remove pan gesture
May 26, 2020
9f42e63
location tracking
May 27, 2020
80718be
start location tracking
May 27, 2020
708ba07
expose aranchor function
May 27, 2020
b0a99a8
remov alt and declar distance var
May 27, 2020
7467cab
update location function'
May 27, 2020
6ae1d52
update location
May 27, 2020
7e43678
remove auto release
May 27, 2020
5b5fcd2
update location logs'
May 27, 2020
d0eb07f
update test values
May 27, 2020
da66cd5
update location tracking
May 27, 2020
34d65b2
add option coords
May 27, 2020
dce26ed
update option var pass
May 27, 2020
57a5536
add options to location
May 27, 2020
d354946
add options var
May 27, 2020
a97e549
add @ before string
May 29, 2020
4d636a9
add @ before string
May 29, 2020
ac673da
add landmark lat and long
May 29, 2020
a2d93c1
add floats as lat and long
May 29, 2020
b0ff00a
update landmark lat and long
May 29, 2020
9def2d5
add else statement
May 29, 2020
983dc8d
add else statement
May 29, 2020
4a4076d
update location code
May 29, 2020
2009571
update order of params
May 29, 2020
91622a2
update location func
May 30, 2020
6b06ea1
create matrix:
May 30, 2020
5e1f45f
udpate matrix
May 30, 2020
d101032
log matrix result
May 30, 2020
2896e1d
update matrix result
May 30, 2020
1ed2b0d
log results
May 30, 2020
006efc8
update transform
May 30, 2020
ca3d33b
add new anchor
May 30, 2020
36c3844
update location params
May 30, 2020
d36b7c6
add landmark lat
May 30, 2020
d495cd9
add landmark log
May 30, 2020
6824557
update lat long options
May 31, 2020
2bcd0b6
landmark lat
May 31, 2020
a961701
initn number with float
May 31, 2020
ab65c5b
add double vlaue
May 31, 2020
23871c4
add double value
May 31, 2020
106615e
add long diff
May 31, 2020
93a806d
add semicolon
May 31, 2020
a297d06
return angle
May 31, 2020
5b9975f
add semicolons
May 31, 2020
3847162
update location tracking
May 31, 2020
acc83a2
add semicolons
May 31, 2020
06d0324
add rotation matrix
May 31, 2020
0d14431
init page with new value'
May 31, 2020
ca127f3
update matrix roattion
May 31, 2020
c8bdad7
re trun distance transform
May 31, 2020
407815f
update distance
May 31, 2020
4faf85f
log distance
May 31, 2020
ef3eb1f
add semicolon
May 31, 2020
1916754
add log'
May 31, 2020
7d9a7c9
return distance
May 31, 2020
af43404
log y value
Jun 3, 2020
163d35a
add endlat
Jun 3, 2020
6267a2f
add z
Jun 3, 2020
d4cc1f1
test with float vlaue
Jun 3, 2020
b61ab21
add location lat and long
Jun 3, 2020
74e49cc
add semicolon
Jun 3, 2020
160fda2
remove all reference of options
Jun 3, 2020
cee6ce4
remove closing brace
Jun 4, 2020
d2a4536
add dynamic double values'
Jun 4, 2020
85668d1
switch double to float
Jun 4, 2020
e07c745
remove * on float decleration
Jun 4, 2020
f14dafd
add acuracy
Jun 4, 2020
d3c6cd8
add vertical and horizontal accurcy
Jun 4, 2020
30741a3
get distance between points
Jun 9, 2020
e756c9c
add bearing and degrees
Jun 9, 2020
7b36512
update location long
Jun 9, 2020
3a09b2c
change double to flaot
Jun 9, 2020
2c85072
add type to function
Jun 9, 2020
b60088f
return location
Jun 9, 2020
aa076a9
remove brace
Jun 9, 2020
66f15dd
update distance km
Jun 9, 2020
e25af5c
update lat and long radians
Jun 9, 2020
6ac84df
add smd4 make
Jun 15, 2020
1768b89
add semicolons
Jun 15, 2020
cf9070c
add log for function result
Jun 15, 2020
4586696
add semicolons
Jun 15, 2020
98bc4ff
update var names
Jun 15, 2020
e0f512e
add indexes
Jun 16, 2020
cea200b
add itendifiers
Jun 16, 2020
a2df161
add transformation matrix
Jun 16, 2020
e437ae6
remove dots
Jun 16, 2020
e054cac
checkout x value'
Jun 16, 2020
680c1b3
access zero
Jun 16, 2020
45ebf35
update vars
Jun 16, 2020
b1a1594
log z value
Jun 16, 2020
316f1ae
add a bunch of logs
Jun 16, 2020
a941dad
add more logs
Jun 16, 2020
d9be3b8
add ar anchor
Jun 16, 2020
157f199
log transform
Jun 16, 2020
1b6794e
log matrix
Jun 16, 2020
b5fa527
update log
Jun 16, 2020
5d5f669
remove bad logs
Jun 16, 2020
f7d72cd
add transform log
Jun 16, 2020
88c5539
remove log stuff
Jun 16, 2020
d2625ce
log matrix
Jun 16, 2020
27233b5
log anchor:
Jun 16, 2020
a7aa3dc
add transformation matrix
Jun 18, 2020
390fae9
update log
Jun 18, 2020
8799a11
logmatrix
Jun 18, 2020
3aae174
logmatrix
Jun 18, 2020
d96b280
upadate position abs
Jun 18, 2020
8ecbbd9
add more ogs
Jun 18, 2020
1f76c1e
convert vector to json
Jun 18, 2020
3000a36
update syntax errors
Jun 18, 2020
0d99d4e
remove staic allocation
Jun 18, 2020
f608cfa
update logs
Jun 18, 2020
f28e64f
update logs
Jun 18, 2020
25f66b7
log entire matrix
Jun 18, 2020
208e4c4
log out new roattion matrix
Jun 18, 2020
1e769ad
remove stupid logs and get rotation
Jun 18, 2020
054ddc8
remove logs
Jun 18, 2020
5c2e9b4
log vector 4s
Jun 18, 2020
ffca919
get vec 4'
Jun 18, 2020
3e1bf4d
update logs
Jun 18, 2020
b05395e
update action
Jun 18, 2020
9f5084f
update logs
Jun 18, 2020
bd541f2
upodate new rotation
Jun 18, 2020
64408a6
add dynamic degree to calculation
Jun 19, 2020
36f80e8
update bearing results
Jun 19, 2020
6aaa193
add ditonary accessor
Jun 19, 2020
7258f9f
redeclare vlaues
Jun 19, 2020
2b72fe6
add semicolons
Jun 19, 2020
4311bbd
correctly access dict
Jun 19, 2020
6675c80
access rotation matrix
Jun 22, 2020
e14be10
add getrow
Jun 22, 2020
a58bca1
update url
Jun 22, 2020
66e7a23
update matrix info
Jun 24, 2020
8b79eb1
update x
Jun 24, 2020
98db280
update w
Jun 24, 2020
32052b7
add anchjor
Jun 24, 2020
1e4343f
add semicolon
Jun 24, 2020
919d6f2
update location tracking
Jun 24, 2020
86ffd64
update rotation
Jun 24, 2020
d149ce6
add some logs to figure shit out
Jun 24, 2020
74ad5b2
try wiht distance transform
Jun 24, 2020
54206c4
add rotation info
Jun 25, 2020
e0f7629
update rotation
Jun 25, 2020
199481e
update location
Jun 25, 2020
9d7706d
add semicolon
Jun 25, 2020
1439360
update matrix accessor
Jun 25, 2020
18476a3
make float 4x4
Jun 25, 2020
2b31858
update syntax
Jun 25, 2020
1fe87f9
make 4x4
Jun 25, 2020
942097c
update matrix
Jun 25, 2020
63485db
update roatation matrix
Jun 29, 2020
500b71b
use simd_matrix
Jun 29, 2020
0462646
update use of rotation
Jun 29, 2020
91cb087
change to 4x4 matrix
Jun 29, 2020
5cc30b8
create with hardcoded values
Jun 29, 2020
f58dfff
use distance transform
Jun 29, 2020
eee1694
use complteted transfomration
Jun 29, 2020
60541fa
change aranchor init
Jun 30, 2020
dc55a65
remove bearing degrees
Jun 30, 2020
8fd066a
ad dmore accurate reading
Jun 30, 2020
881247c
fix typo
Jun 30, 2020
47a09e5
add in extra to function def
Jul 1, 2020
6473dcd
add log and create voide function
Jul 1, 2020
10273c2
remove resolve
Jul 1, 2020
b555f8e
create negitive rotation
Jul 2, 2020
48e385e
Scrub up the code
Jul 2, 2020
01631c1
import corelocation
Jul 2, 2020
933beb9
add astrik
Jul 2, 2020
f6f04af
fix syntax errors
Jul 2, 2020
725f96c
fix syntax issues
Jul 2, 2020
16cf979
syntax issues
Jul 2, 2020
ca395f2
rename location function and add anchorname
Jul 14, 2020
f375cda
use init with name
Jul 14, 2020
ed7aedd
return name in anchor result
Jul 14, 2020
fe6f9b4
add name prop logic
Jul 14, 2020
768ba08
add semicolon
Jul 14, 2020
bec6ff1
add semicolon
Jul 14, 2020
33aab03
add nodename
Jul 14, 2020
d086fb5
add anchor name
Jul 14, 2020
f3bb2c3
log strings
Jul 14, 2020
19ef298
add tests
Jul 14, 2020
2441603
add testname
Jul 14, 2020
4ae3280
add anchor name
Jul 14, 2020
324be96
move nsstring frist
Jul 14, 2020
f04f07d
remove logs
Jul 14, 2020
a0869bb
clean code for master merge
Jul 17, 2020
6f2bf9d
addd min
Aug 1, 2020
9bab863
update distance function
Aug 1, 2020
d5d287c
remove distance function
Aug 1, 2020
08e2219
add distance filter
Aug 1, 2020
b9e57a0
update distance transform
Aug 1, 2020
17da7c3
add image object
Aug 18, 2020
b4677de
remove secuirty token
Aug 18, 2020
d77aed3
updated image url
Aug 19, 2020
e3f6140
update ns jog
Aug 20, 2020
c4767b6
add iamge node
Aug 20, 2020
cd5ce51
update plane var
Aug 20, 2020
4dc1799
add child node
Aug 20, 2020
464401f
update global vars
Aug 20, 2020
70db719
add chidl to scence
Aug 20, 2020
4e7902a
try arview
Aug 20, 2020
079a02d
add nodes to scence
Aug 20, 2020
c87db4b
add Image Object
Aug 25, 2020
8aaaefd
update iamge objects
Aug 25, 2020
090d04d
add semicolon
Aug 25, 2020
0de5df5
add new console.logs
Aug 25, 2020
3df3d81
add more logs
Aug 25, 2020
fbff845
add consolelogs
Aug 25, 2020
dc24a13
add materials
Aug 26, 2020
ded8c01
add material
Aug 26, 2020
63eb6f8
add material var
Aug 26, 2020
f6ff939
remove box
Aug 26, 2020
2929e61
init image data
Aug 27, 2020
750043a
add dynamic url
Aug 28, 2020
64cf29a
add @ inside of image
Aug 29, 2020
41b5e5b
log image url
Aug 29, 2020
b1d6f72
remove extra bracket
Aug 29, 2020
e888e73
add size to shape
Oct 1, 2020
1dbe6cf
add pinch
Apr 20, 2020
5224f50
expose location functions
JackSoby Dec 13, 2020
d31d083
remove android from test project. remove pocketsvg from gitmodules an…
code-matt Dec 13, 2020
f0235b5
test project builds and loads into AR
code-matt Dec 13, 2020
8a0bd63
add docs to function
JackSoby Dec 13, 2020
c5d8226
fix redme typo
JackSoby Dec 13, 2020
8496d41
update readme
JackSoby Dec 13, 2020
6cee461
add images
JackSoby Jan 27, 2021
66d973a
update iamge line
JackSoby Jan 27, 2021
e49fc7f
set node props
JackSoby Feb 18, 2021
ea98caa
update iamge node
JackSoby Feb 19, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.DS_Store

# Runtime data
pids
Expand Down Expand Up @@ -33,7 +34,7 @@ bower_components
build/Release

# Dependency directories
node_modules/
node_modules
jspm_packages/

# Typescript v1 declaration files
Expand Down Expand Up @@ -70,9 +71,9 @@ xcuserdata/
*.xccheckout

## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
# Xcode
#
build/
DerivedData/
*.moved-aside
*.pbxuser
!default.pbxuser
*.mode1v3
Expand All @@ -81,3 +82,15 @@ DerivedData/
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate

/testproject/ios/Pods/
*.jsbundle
.DS_Store

4 changes: 1 addition & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
[submodule "ios/PocketSVG"]
path = ios/PocketSVG
url = https://github.com/pocketsvg/PocketSVG

4 changes: 4 additions & 0 deletions ARKit.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ class ARKit extends Component {
keyBy([
'onTapOnPlaneUsingExtent',
'onTapOnPlaneNoExtent',
'onRotationGesture',
'onPinchGesture',
'onPlaneDetected',
'onPlaneRemoved',
'onPlaneUpdated',
Expand Down Expand Up @@ -238,6 +240,8 @@ ARKit.propTypes = {
onTrackingState: PropTypes.func,
onTapOnPlaneUsingExtent: PropTypes.func,
onTapOnPlaneNoExtent: PropTypes.func,
onRotationGesture: PropTypes.func,
onPinchGesture: PropTypes.func,
onEvent: PropTypes.func,
isMounted: PropTypes.func,
isInitialized: PropTypes.func,
Expand Down
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ An `DetectionImage` is an image or image resource group that should be detected

See https://developer.apple.com/documentation/arkit/arreferenceimage?language=objc how to add these images.

You can also pass in a list of URLS to detect images dynamicaly from the web `detectionImages={[{ arDetectionImages: myImages }]}`.

You will then receive theses images in `onAnchorDetected/onAnchorUpdated`. See also [Planes and Anchors](#planes-and-anchors) for more details.

`DetectionImage` has these properties
Expand All @@ -252,11 +254,16 @@ We probably will add the option to load images from other sources as well (PRs e
| `onPlaneDetected` | `Anchor` | When a plane anchor is first detected.
| `onPlaneUpdated` | `Anchor` | When a detected plane is updated
| `onPlaneRemoved` | `Anchor` | When a detected plane is removed
| `onRotationGesture` | `{"rotation": 1.4, "velocity": 1}` | Returns new value for Z axis of rotation when an anchor is rotated with.two fingers
| `onPinchGesture` | `{"scale": 1.0, "velocity": 1.9}` | Returns new scale for anchor when an anchor is pinched with two fingers.

See [Planes and Anchors](#planes-and-anchors) for Details about anchors

#### Callbacks


| Callback Name | Callbacks | Examples | Notes
|---|---|---|---|
| `addAnchorByLocation` | `onAnchorUpdated, onAnchorDetected` | `ARKit.addAnchorByLocation(name, locationLatidude, locationLongitude, landmarkLatitude, landmarkLongitude, locationHorizontalAccruacy, locationHorizontalAccruacy, locationVerticalAccuracy, landmarkVerticalAccuracy, locationAltitude, landmarkAltitude);`| ⚠️ (This function needs work and provides very inconsistent results, if you have ways to improve it please open a PR. Arkit/CoreLocation solves this problem much better if you would like to find a way to import their functions into this library. https://github.com/ProjectDent/ARKit-CoreLocation ⚠️. Pass in location information of the user and the location information of the landmark where you want the AR anchor to appear. worldAlignment Must be set as GravityAndHeading. Returns position of anchor in onAnchorUpdated callback.
#### Planes and Anchors

ARKit can detect different anchors in the real world:
Expand Down
24 changes: 24 additions & 0 deletions components/ARImage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
//
// ARImage.js
//
// Created by HippoAR on 8/12/17.
// Copyright © 2017 HippoAR. All rights reserved.
//

import PropTypes from 'prop-types';

import { NativeModules } from 'react-native';

import { material } from './lib/propTypes';
import createArComponent from './lib/createArComponent';

const ARImage = createArComponent(
// { mount: NativeModules.ARImageManager.mount, pick: ['id'] },
{
imageUrl: PropTypes.string,
material
},
[]
);

export default ARImage;
2 changes: 2 additions & 0 deletions components/ARShape.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import createArComponent from './lib/createArComponent';

const ARShape = createArComponent('addShape', {
shape: PropTypes.shape({
width: PropTypes.number,
height: PropTypes.number,
extrusion: PropTypes.number,
pathSvg: PropTypes.string,
pathFlatness: PropTypes.number,
Expand Down
10 changes: 7 additions & 3 deletions components/lib/createArComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,22 +84,22 @@ export default (mountConfig, propTypes = {}, nonUpdateablePropKeys = []) => {
});

const getNonNodeProps = props => parseMaterials(pick(props, nonNodePropKeys));

const mountFunc =
typeof mountConfig === 'string'
? ARGeosManager[mountConfig]
: mountConfig.mount;

const mount = (id, props, parentId) => {
if (DEBUG) console.log(`[${id}] [${new Date().getTime()}] mount`, props);

return mountFunc(
getNonNodeProps(props),
{
id,
...pick(props, NODE_PROPS),
},
props.frame,
parentId,
parentId,
);
};

Expand All @@ -126,18 +126,22 @@ export default (mountConfig, propTypes = {}, nonUpdateablePropKeys = []) => {
const {
transition: transitionOnMount = { duration: 0 },
} = fullPropsOnMount;

console.log("fullpropsmount", fullPropsOnMount)
this.doPendingTimers();
this.mountWithProps(fullPropsOnMount).then(() => {
this.props = propsOnMount;
this.componentWillUpdate({ ...props, transition: transitionOnMount });
});
} else {
console.log("halfpropsmount", props)

this.mountWithProps(props);
}
}

async mountWithProps(props) {
console.log("parentId", this.context.arkitParentId)
console.log("props", props)
return mount(this.identifier, props, this.context.arkitParentId);
}

Expand Down
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import ARShape from './components/ARShape';
import ARSphere from './components/ARSphere';
import ARSprite from './components/ARSprite';
import ARText from './components/ARText';
import ARImage from './components/ARImage';
import ARTorus from './components/ARTorus';
import ARTube from './components/ARTube';
import DeviceMotion from './DeviceMotion';
Expand All @@ -37,6 +38,7 @@ ARKit.Torus = ARTorus;
ARKit.Capsule = ARCapsule;
ARKit.Plane = ARPlane;
ARKit.Text = ARText;
ARKit.Image = ARImage;
ARKit.Model = ARModel;
ARKit.Sprite = ARSprite;
ARKit.Group = ARGroup;
Expand All @@ -60,6 +62,7 @@ export {
ARCapsule,
ARPlane,
ARText,
ARImage,
ARModel,
ARLight,
ARGroup,
Expand Down
Binary file added ios/.DS_Store
Binary file not shown.
1 change: 0 additions & 1 deletion ios/PocketSVG
Submodule PocketSVG deleted from 5405d0
21 changes: 21 additions & 0 deletions ios/RCTARKit.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

#import "RCTARKitDelegate.h"
#import "RCTARKitNodes.h"
#import "RCTMultiPeer.h"
@import CoreLocation;

typedef void (^RCTBubblingEventBlock)(NSDictionary *body);
typedef void (^RCTARKitResolve)(id result);
Expand All @@ -22,16 +24,19 @@ typedef void (^RCTARKitReject)(NSString *code, NSString *message, NSError *error

+ (instancetype)sharedInstance;
+ (bool)isInitialized;
- (instancetype)initWithARViewAndBrowser:(ARSCNView *)arView multipeer:(MultipeerConnectivity *)multipeer;
- (instancetype)initWithARView:(ARSCNView *)arView;


@property (nonatomic, strong) NSMutableArray<id<RCTARKitTouchDelegate>> *touchDelegates;
@property (nonatomic, strong) NSMutableArray<id<RCTARKitRendererDelegate>> *rendererDelegates;
@property (nonatomic, strong) NSMutableArray<id<RCTARKitSessionDelegate>> *sessionDelegates;
@property (nonatomic, strong) NSMutableArray<id<MultipeerConnectivityDelegate>> *multipeerDelegate;


#pragma mark - Properties
@property (nonatomic, strong) ARSCNView *arView;
@property (nonatomic, strong) MultipeerConnectivity *multipeer;
@property (nonatomic, strong) RCTARKitNodes *nodeManager;

@property (nonatomic, assign) BOOL debug;
Expand All @@ -46,6 +51,7 @@ typedef void (^RCTARKitReject)(NSString *code, NSString *message, NSError *error
@property (nonatomic, copy) RCTBubblingEventBlock onPlaneRemoved;
@property (nonatomic, copy) RCTBubblingEventBlock onPlaneUpdated;


@property (nonatomic, copy) RCTBubblingEventBlock onAnchorDetected;
@property (nonatomic, copy) RCTBubblingEventBlock onAnchorRemoved;
@property (nonatomic, copy) RCTBubblingEventBlock onAnchorUpdated;
Expand All @@ -57,9 +63,21 @@ typedef void (^RCTARKitReject)(NSString *code, NSString *message, NSError *error
@property (nonatomic, copy) RCTBubblingEventBlock onTrackingState;
@property (nonatomic, copy) RCTBubblingEventBlock onTapOnPlaneUsingExtent;
@property (nonatomic, copy) RCTBubblingEventBlock onTapOnPlaneNoExtent;

@property (nonatomic, copy) RCTBubblingEventBlock onRotationGesture;
@property (nonatomic, copy) RCTBubblingEventBlock onPinchGesture;

@property (nonatomic, copy) RCTBubblingEventBlock onEvent;
@property (nonatomic, copy) RCTBubblingEventBlock onARKitError;

@property (nonatomic, copy) RCTBubblingEventBlock onPeerConnected;
@property (nonatomic, copy) RCTBubblingEventBlock onPeerConnecting;
@property (nonatomic, copy) RCTBubblingEventBlock onPeerDisconnected;

@property (nonatomic, copy) RCTBubblingEventBlock onMultipeerJsonDataReceived;




@property NSMutableDictionary *planes; // plane detected

Expand All @@ -70,6 +88,7 @@ typedef void (^RCTARKitReject)(NSString *code, NSString *message, NSError *error
- (void)resume;
- (void)reset;
- (void)hitTestPlane:(CGPoint)tapPoint types:(ARHitTestResultType)types resolve:(RCTARKitResolve)resolve reject:(RCTARKitReject)reject;
- (void)getCurrentWorldMap:(RCTARKitResolve)resolve reject:(RCTARKitReject)reject;
- (void)hitTestSceneObjects:(CGPoint)tapPoint resolve:(RCTARKitResolve) resolve reject:(RCTARKitReject)reject;
- (SCNVector3)projectPoint:(SCNVector3)point;
- (float)getCameraDistanceToPoint:(SCNVector3)point;
Expand All @@ -78,6 +97,8 @@ typedef void (^RCTARKitReject)(NSString *code, NSString *message, NSError *error
- (void)focusScene;
- (void)clearScene;
- (NSDictionary *)readCameraPosition;
- (void)getArAnchorPosition:(CLLocation *)location landmark:(CLLocation *)landmark anchorName:(NSString *)anchorName;

- (NSDictionary *)readCamera;
- (NSDictionary* )getCurrentLightEstimation;
- (NSArray * )getCurrentDetectedFeaturePoints;
Expand Down
Loading