RaycastReflection
A class in Root.Township, the global namespace.
Debug script that draws a laser bouncing off surfaces with a LineRenderer, logging the name of every object hit each frame.
- Listed in Global namespace: Q to R
- Inherits or implements
MonoBehaviour - Attributes
RequireComponent
Constructors
| Member | What it is |
|---|---|
RaycastReflection() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
| Member | What it is |
|---|---|
int nReflections | How many bounces to trace, at least 1. |