Documentation / Node reference / code nodes
code/SDFCircle2D
Returns the distance to a 2D circle.
Sdf2d
Returns the distance to a filled circle in the XY plane.
Parameters
| Name | Type | What it does |
|---|---|---|
| P | Vector2 | Position to measure from. Unwired, it uses the sample position. |
| t | Vector2 | Circle center. |
| r | Float | Circle radius. |
See also
This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.