Skip to content

Commit d1062a8

Browse files
committed
fix relative absolute
1 parent cff0f45 commit d1062a8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ios/RCTARKit.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ - (NSMutableArray *)getCurrentDetectedFeaturePoints {
520520
NSMutableArray * featurePoints = [NSMutableArray array];
521521
for (int i = 0; i < [self currentFrame].rawFeaturePoints.count; i++) {
522522
vector_float3 positionV = [self currentFrame].rawFeaturePoints.points[i];
523-
SCNVector3 position = [self.nodeManager getAbsolutePositionToOrigin:SCNVector3Make(positionV[0],positionV[1],positionV[2])];
523+
SCNVector3 position = [self.nodeManager getRelativePositionToOrigin:SCNVector3Make(positionV[0],positionV[1],positionV[2])];
524524
NSString * pointId = [NSString stringWithFormat:@"featurepoint_%lld",[self currentFrame].rawFeaturePoints.identifiers[i]];
525525

526526
[featurePoints addObject:@{

ios/RCTARKitNodes.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,5 @@ typedef NS_OPTIONS(NSUInteger, RFReferenceFrame) {
4545
- (void)clear;
4646
- (NSMutableArray *) mapHitResults:(NSArray<ARHitTestResult *> *)results;
4747
- (SCNVector3)getAbsolutePositionToOrigin:(const SCNVector3)positionRelative;
48+
- (SCNVector3)getRelativePositionToOrigin:(const SCNVector3)positionAbsolute;
4849
@end

0 commit comments

Comments
 (0)