Path Drawing Sample
This sample demonstrates how to translate touch input into a path that can be drawn on-screen and followed by a game object.
Sample Overview
The Path Drawing sample builds upon the core of the Waypoint Sample to demonstrate how touch gesture input can be translated into waypoints for an object. This allows games to draw paths that objects can follow, with the object orienting itself along the path.
Additionally the sample leverages the PrimitiveBatch from Primitives sample as a means of displaying the arbitrary 2D line.
Sample Controls
This sample uses the following touch controls.
| Action | Windows Phone |
|---|---|
| Draw Path | Tap and Drag from the tank |
| Erase Path | Tap the tank |