> For the complete documentation index, see [llms.txt](https://xreal.gitbook.io/nrsdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xreal.gitbook.io/nrsdk/development/plane-detection-tutorial/overview.md).

# Overview

### What you'll build <a href="#what-youll-build" id="what-youll-build"></a>

In this codelab, you'll build a simple game using NRSDK. The goal of the game is to collect gem using a vehicle that you control using your controller.

However, this won't happen in an entirely virtual world! You'll mix physical atoms and digital bits to create a new type of player experience by creating a game that understands the environment around the player.

By the end of this tutorial, your game will be able to:

* Detect real-world planes and draw a playing field over it.
* Cast rays from controller and detect intersections with planes.

![](/files/PUxWuSJGTDHL6xjnGzKJ)

### What you'll learn <a href="#what-youll-learn" id="what-youll-learn"></a>

* How to set up a project that uses NRSDK
* How to use `PlaneDetector`to subscribe to new planes.
* How to use `Raycast` to find intersections with virtual geometry

### What you'll need <a href="#what-youll-need" id="what-youll-need"></a>

Please refer to Step 1 to Step 5 in [Getting Started with NRSDK](/nrsdk/nrsdk-fundamentals/quickstart-for-android.md) to get your environment ready for development.&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://xreal.gitbook.io/nrsdk/development/plane-detection-tutorial/overview.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
