Skip to main content

PuzzleLightReflectExample2

A class in Root.Township, the global namespace.

Leftover example script for predicting light reflections with gizmos. OnDrawGizmos is empty, so it draws nothing.

Constructors​

MemberWhat it is
PuzzleLightReflectExample2()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

MemberWhat it is
int maxReflectionCountBounces to draw.
float maxStepDistanceRaycast length per bounce.

Methods​

2 private and internal methods
MemberWhat it is
private void DrawPredictedReflectionPattern(Vector3 position, Vector3 direction, int reflectionRemaining)Draws yellow gizmo lines along a raycast path that bounces off surfaces until reflections run out.
private void OnDrawGizmos()Empty.