Documentation / Node reference / code nodes
code/SDFElongate
Stretches a position, to stretch the shape that reads it.
Sdf3d
Cuts a position through center and pulls the halves apart by size, so a shape that reads it comes out stretched. A sphere becomes a capsule. Use it inside a geo/SDFBuilder.
Parameters
| Name | Type | What it does |
|---|---|---|
| P | Vector3 | Position to stretch. Defaults to the sample position. |
| size | Vector3 | Length added along each axis. |
| center | Vector3 | Where the shape is cut. Place it inside. |
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.