File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff 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: @{
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments