---
# System prepended metadata

title: 'Exercise 1 : Throwing things around'

---

# Exercise 1 : Throwing things around

## 1: Create a hololens project

Make sure you create a hololens project as explained: https://hackmd.io/vB3_3ixsSoSjEg4840iEYg

## 2: Mapping the the scene

Add a "Start Experience" button, to give the hololens some time to allow spatial mapping.
Make sure the Spatial mapping data is visible (and **only** visible) before the start button is pressed.

:::info
**Hint**

```csharp
// Get the first Mesh Observer available, generally we have only one registered
var observer = CoreServices.GetSpatialAwarenessSystemDataProvider<IMixedRealitySpatialAwarenessMeshObserver>();

// Set to visible and the Occlusion material
observer.DisplayOption = SpatialAwarenessMeshDisplayOptions.Occlusion;
```
:::

## 3: Some colored objects.

Add some colored objects balls/spheres/... with gravity enabled.
Make sure you can throw around these objects using One hand interaction.

## 4: Incomplete spatial mapping.

- What happends when the spatial mapping is incomplete?
- What solutions can you think of?

## 4: How to deal with Spaticial Mapping in the Editor simulation mode?

- Can you detect is the application runs in the Editor or on the Device ?
- What happens in case of Holographic remoting ?








