🕶️
NRSDK(Old)
New DocumentationSDK DownloadAPI Reference
v2.1.0
v2.1.0
  • NRSDK Fundamentals
    • NRSDK Overview
    • XREAL Devices
      • XREAL Glasses
      • Controller
      • Compatibility
    • Getting Started with NRSDK
    • Sample Code
    • Tutorials
    • Release Note
      • NRSDK 2.1.1
      • NRSDK 2.1.0
      • NRSDK 1.10.2
      • NRSDK 1.9.5
      • NRSDK 1.9.3
      • NRSDK 1.9.1
      • NRSDK 1.8.0
      • NRSDK 1.7.0
      • NRSDK 1.6.0
  • Development
    • Input and Camera
      • NRInput
      • Interact with Unity UI (Tutorial)
      • Customize Controller UI
      • NRCameraRig
    • Hand Tracking
    • Image Tracking
    • Plane Detection (Tutorial)
      • Overview
      • Import the package
      • Detect planes in the real world
      • Perform a hit test against detected planes
      • Add a car
      • Add gems
      • Wrap up
    • Depth Mesh
      • Meshing Manager Overview
      • Use Meshes in the Editor
      • Tutorial: Mesh Collision
    • Spatial Anchor
      • Mapping Example Scene
      • Tutorial: Halloween Treasure Hunt
        • Handle the Situation of Failed Anchor Saving
      • Tutorial: Sharing Anchors
        • Setting Up Photon
        • Cloud Storage: Firebase (optional)
        • Cloud Storage: Aliyun OSS (optional)
        • Implementing Cloud Save and Load
        • Sharing Anchors with Photon
    • Tools
      • Single Pass Stereo Rendering
      • First Person View
      • Emulator
      • XR Streaming
    • Miscellaneous
      • Access RGB Camera
      • NRSDK Coordinate Systems
      • MRTK Integration
      • Notification popup
      • Reset Camera
      • Render Metrics
      • Render MonoMode
  • API Reference
  • Frequently Asked Questions
  • DESIGN GUIDE
    • Design Guide Overview
    • Displaying
    • Interacting
    • Controlling
    • Navigating
Powered by GitBook
On this page
  • What you'll build
  • What you'll learn
  • What you'll need

Was this helpful?

  1. Development
  2. Plane Detection (Tutorial)

Overview

PreviousPlane Detection (Tutorial)NextImport the package

Last updated 1 year ago

Was this helpful?

What you'll build

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.

What you'll learn

  • How to set up a project that uses NRSDK

  • How to use PlaneDetectorto subscribe to new planes.

  • How to use Raycast to find intersections with virtual geometry

What you'll need

Please refer to Step 1 to Step 5 in to get your environment ready for development.

Getting Started with NRSDK