Skip to content

Commit 6260bf7

Browse files
committed
Fix onAnchorChanged ArNode parameter
1 parent f724780 commit 6260bf7

File tree

1 file changed

+3
-3
lines changed
  • arsceneview/src/main/java/io/github/sceneview/ar/node

1 file changed

+3
-3
lines changed

arsceneview/src/main/java/io/github/sceneview/ar/node/ArNode.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import io.github.sceneview.ar.ArSceneLifecycleObserver
1111
import io.github.sceneview.ar.ArSceneView
1212
import io.github.sceneview.ar.arcore.*
1313
import io.github.sceneview.node.ModelNode
14-
import io.github.sceneview.node.Node
1514

1615
open class ArNode() : ModelNode(), ArSceneLifecycleObserver {
1716

@@ -125,7 +124,7 @@ open class ArNode() : ModelNode(), ArSceneLifecycleObserver {
125124

126125
var onPoseChanged: ((node: ArNode, pose: Pose?) -> Unit)? = null
127126

128-
var onAnchorChanged: ((node: Node, anchor: Anchor?) -> Unit)? = null
127+
var onAnchorChanged: ((node: ArNode, anchor: Anchor?) -> Unit)? = null
129128

130129
private var onCloudAnchorTaskCompleted: ((anchor: Anchor, success: Boolean) -> Unit)? = null
131130

@@ -264,7 +263,6 @@ open class ArNode() : ModelNode(), ArSceneLifecycleObserver {
264263
return anchor != null
265264
}
266265

267-
268266
/**
269267
* ### Anchor this node to make it fixed at the actual position and orientation is the world
270268
*
@@ -440,6 +438,8 @@ open class ArNode() : ModelNode(), ArSceneLifecycleObserver {
440438
/**
441439
* # How an object is placed on the real world
442440
*
441+
* @param instantPlacementDistance Distance in meters at which to create an InstantPlacementPoint.
442+
* This is only used while the tracking method for the returned point is InstantPlacementPoint.
443443
* @param instantPlacementFallback Fallback to instantly place nodes at a fixed orientation and an
444444
* approximate distance when the base placement type is not available yet or at all.
445445
*/

0 commit comments

Comments
 (0)