Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions java/com/example/myapplication/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
public class MainActivity extends AppCompatActivity {
private ArFragment arFragment;
private ModelRenderable modelRenderable;


@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Expand All @@ -42,9 +40,7 @@ private void setUpModel() {
Toast.makeText(MainActivity.this,"Model cant be loaded",Toast.LENGTH_SHORT).show();
return null;
});

}

private void setUpPlane() {
arFragment.setOnTapArPlaneListener(new BaseArFragment.OnTapArPlaneListener() {
@Override
Expand All @@ -53,8 +49,6 @@ public void onTapPlane(HitResult hitResult, Plane plane, MotionEvent motionEvent
AnchorNode anchorNode=new AnchorNode(anchor);
anchorNode.setParent(arFragment.getArSceneView().getScene());
createModel(anchorNode);


}
});
}
Expand All @@ -63,8 +57,5 @@ private void createModel(AnchorNode anchorNode){
node.setParent(anchorNode);
node.setRenderable(modelRenderable);
node.select();

}


}
}