CylinderMesh

Inherits: PrimitiveMesh < Mesh < Resource < Reference < Object

Class representing a cylindrical PrimitiveMesh.

Description

Class representing a cylindrical PrimitiveMesh. This class can be used to create cones by setting either the top_radius or bottom_radius properties to 0.0.

Property Descriptions

Default1.0
Setterset_bottom_radius(value)
Getterget_bottom_radius()

Bottom radius of the cylinder.


Default2.0
Setterset_height(value)
Getterget_height()

Full height of the cylinder.


  • int radial_segments
Default64
Setterset_radial_segments(value)
Getterget_radial_segments()

Number of radial segments on the cylinder.


Default4
Setterset_rings(value)
Getterget_rings()

Number of edge rings along the height of the cylinder.


Default1.0
Setterset_top_radius(value)
Getterget_top_radius()

Top radius of the cylinder.

doradoro's advice! Getters and Setters will be deprecated! Avoid their use!

Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 2020-03-07 at 01:31:30. It's the English Stable version because it's what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.