Skip to content

Commit

Permalink
Fix onAnchorChanged ArNode parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasGorisse committed Jun 24, 2022
1 parent f724780 commit 6260bf7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import io.github.sceneview.ar.ArSceneLifecycleObserver
import io.github.sceneview.ar.ArSceneView
import io.github.sceneview.ar.arcore.*
import io.github.sceneview.node.ModelNode
import io.github.sceneview.node.Node

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

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

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

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

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

Expand Down Expand Up @@ -264,7 +263,6 @@ open class ArNode() : ModelNode(), ArSceneLifecycleObserver {
return anchor != null
}


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

0 comments on commit 6260bf7

Please sign in to comment.