Skip to content

Cant properly position ARKitReferenceNode, probably bug setting parent #251

@jangeci

Description

@jangeci
final debugSphere = ARKitSphere(radius: 0.05, materials: [ARKitMaterial(diffuse: ARKitMaterialProperty.color(Colors.red))]);
ARKitNode debugNode = ARKitNode(geometry: debugSphere, position: vector.Vector3(0, 0, 0));
arkitController.add(debugNode, parentNodeName: planeAnchor.nodeName);

final ARKitNode dinoNode = ARKitReferenceNode(
      name: dino.key,
      url: 'art.scnassets/stegoceras_validum.usdz',
      scale: vector.Vector3(dino.value.scale, dino.value.scale, dino.value.scale),
      position: vector.Vector3(0, 0, 0),
      eulerAngles: vector.Vector3(0, 0, 0),
 );

arkitController.add(dinoNode, parentNodeName: planeAnchor.nodeName);

Image

there are two nodes - red ball and dino
when i create ARKitNode it stays at one place where it is supposed to be, when i try the same with ARKitReferenceNode it is moving with camera

Is it possible that the parentNodeName for ARKitReferenceNode is not being set properly, causing it to be added to the root node (camera space)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions