pull/28/head^2
Your Name 10 months ago
parent cc17fd1f4b
commit e5af3854a6

@ -63,7 +63,7 @@ class ArKitView : ARView {
case .ended: case .ended:
entity.move(to: initialTransform, relativeTo: entity.parent, duration: 1) entity.move(to: initialTransform, relativeTo: entity.parent, duration: 1)
let pos = entity.position let pos = entity.position
/*
if ( pos.x > ) if ( pos.x > )
if (localisation.x > 450 || localisation.x < -450 || localisation.y < -350 || localisation.y > 350){ if (localisation.x > 450 || localisation.x < -450 || localisation.y < -350 || localisation.y > 350){
@ -71,7 +71,7 @@ class ArKitView : ARView {
self.position = returnPositionByCellPos(cellX:Int(self.cellPosition.x),cellY:Int(self.cellPosition.y)) self.position = returnPositionByCellPos(cellX:Int(self.cellPosition.x),cellY:Int(self.cellPosition.y))
return return
} }
*/

@ -21,7 +21,7 @@ struct ArKitViewRepresentable : UIViewRepresentable {
} }
func makeUIView(context: Context) -> ArKitView { func makeUIView(context: Context) -> ArKitView {
let arView = ArKitView() let arView = ArKitView(vmArkit)
let anchor = arView.defineAnchors() let anchor = arView.defineAnchors()
vmArkit.setup(anchor) vmArkit.setup(anchor)
arView.addGesture(vmArkit.pieces) arView.addGesture(vmArkit.pieces)

Loading…
Cancel
Save