Instance Propertymigueldeicaza.swiftgodot 0.45.0SwiftGodot
pathIntervalType
When mode
is .path, this will determine if the interval should be by distance (.pathIntervalDistance) or subdivision fractions (.pathIntervalSubdivide).
final var pathIntervalType: CSGPolygon3D.PathIntervalType { get set }
Other members in extension
Types
Type members
Instance members
var depth: Double
When
mode
is .depth, the depth of the extrusion.var material: Material?
Material to use for the resulting mesh. The UV maps the top half of the material to the extruded shape (U along the length of the extrusions and V around the outline of the
polygon
), the bottom-left quarter to the front end face, and the bottom-right quarter to the back end face.var mode: CSGPolygon3D.Mode
var pathContinuousU: Bool
When
mode
is .path, by default, the top half of thematerial
is stretched along the entire length of the extruded shape. Iffalse
the top half of the material is repeated every step of the extrusion.var pathInterval: Double
When
mode
is .path, the path interval or ratio of path points to extrusions.var pathJoined: Bool
When
mode
is .path, iftrue
the ends of the path are joined, by adding an extrusion between the last and first points of the path.var pathLocal: Bool
When
mode
is .path, iftrue
theTransform3D
of theCSGPolygon3D
is used as the starting point for the extrusions, not theTransform3D
of thepathNode
.var pathNode: NodePath
When
mode
is .path, the location of thePath3D
object used to extrude thepolygon
.var pathRotation: CSGPolygon3D.PathRotation
When
mode
is .path, thePathRotation
method used to rotate thepolygon
as it is extruded.var pathSimplifyAngle: Double
When
mode
is .path, extrusions that are less than this angle, will be merged together to reduce polygon count.var pathUDistance: Double
When
mode
is .path, this is the distance along the path, in meters, the texture coordinates will tile. When set to 0, texture coordinates will match geometry exactly with no tiling.var polygon: PackedVector2Array
The point array that defines the 2D polygon that is extruded. This can be a convex or concave polygon with 3 or more points. The polygon must not have any intersecting edges. Otherwise, triangulation will fail and no mesh will be generated.
var smoothFaces: Bool
If
true
, applies smooth shading to the extrusions.var spinDegrees: Double
When
mode
is .spin, the total number of degrees thepolygon
is rotated when extruding.var spinSides: Int32
When
mode
is .spin, the number of extrusions made.