Gist 4bad9d7e5912f181148d97187d299368
✓ Published0🌍 Public
Aandybak
Last edited Feb 10, 2021
Created on Feb 10, 2021
This example demonstrates an attempt to create a stroke geometry in a virtual reality sketching tool using the Tilt Brush-style API. It shows how a new `Stroke` object is instantiated with control points, brush settings, and a seed, then passed to `stroke.Recreate()` for rendering on the active canvas. The code uses `InputManager`, `PointerManager`, and `App.Scene.ActiveCanvas` from the Tilt Brush framework, along with Unity’s `Transform` and `Vector3` for positioning. However, the stroke remains invisible in the scene, as noted in the file comment, indicating a likely issue with the recreation or rendering pipeline. The data source is procedural control points generated from the tool’s attach point.
AI-generated description