Pass:torus
EditDraws a torus.
Arguments
| Name | Type | Default | Description |
| x | number | 0 | The x coordinate of the center of the torus. |
| y | number | 0 | The y coordinate of the center of the torus. |
| z | number | 0 | The z coordinate of the center of the torus. |
| radius | number | 1 | The radius of the torus. |
| thickness | number | 1 | The thickness of the torus. |
| angle | number | 0 | The rotation of the torus around its rotation axis, in radians. |
| ax | number | 0 | The x component of the axis of rotation. |
| ay | number | 1 | The y component of the axis of rotation. |
| az | number | 0 | The z component of the axis of rotation. |
| tsegments | number | 64 | The number of toroidal (circular) segments to render. |
| psegments | number | 32 | The number of poloidal (tubular) segments to render. |
Returns
Nothing
Arguments
| Name | Type | Default | Description |
| position | vector | The position of the center of the torus. | |
| scale | vector | The size of the torus (x and y scale the radius, z is the thickness). | |
| orientation | quaternion | The orientation of the torus. | |
| tsegments | number | 64 | The number of toroidal (circular) segments to render. |
| psegments | number | 32 | The number of poloidal (tubular) segments to render. |
Returns
Nothing
Arguments
| Name | Type | Default | Description |
| transform | Mat4 | The transform of the torus. | |
| tsegments | number | 64 | The number of toroidal (circular) segments to render. |
| psegments | number | 32 | The number of poloidal (tubular) segments to render. |
Returns
Nothing
Notes
The local origin is in the center of the torus, and the torus forms a circle around the local Z axis.