Struct CSGPolygon
Extrudes a 2D polygon shape to create a 3D mesh.
struct CSGPolygon
;
This node takes a 2D polygon shape and extrudes it to create a 3D mesh.
Properties
| Name | Type | Description |
|---|---|---|
depth[get, set]
|
double | Extrusion depth when mode is constant MODE_DEPTH.
|
mode[get, set]
|
CSGPolygon | Extrusion mode. |
pathContinuousU[get, set]
|
bool | If true the u component of our uv will continuously increase in unison with the distance traveled along our path when mode is constant MODE_PATH.
|
pathInterval[get, set]
|
double | Interval at which a new extrusion slice is added along the path when mode is constant MODE_PATH.
|
pathJoined[get, set]
|
bool | If true the start and end of our path are joined together ensuring there is no seam when mode is constant MODE_PATH.
|
pathLocal[get, set]
|
bool | If false we extrude centered on our path, if true we extrude in relation to the position of our CSGPolygon when mode is constant MODE_PATH.
|
pathNode[get, set]
|
NodePath | The Shape object containing the path along which we extrude when mode is constant MODE_PATH.
|
pathRotation[get, set]
|
CSGPolygon | The method by which each slice is rotated along the path when mode is constant MODE_PATH.
|
polygon[get, set]
|
PoolArray!(godot.core.vector2.Vector2) | Point array that defines the shape that we'll extrude. |
smoothFaces[get, set]
|
bool | Generates smooth normals so smooth shading is applied to our mesh. |
spinDegrees[get, set]
|
double | Degrees to rotate our extrusion for each slice when mode is constant MODE_SPIN.
|
spinSides[get, set]
|
long | Number of extrusion when mode is constant MODE_SPIN.
|
Methods
Enums
| Name | Description |
|---|---|
Constants
|
|
Mode
|
|
PathRotation
|