PrismMesh

Inherits: PrimitiveMesh < Mesh < Resource < Reference < Object

Class representing a prism-shaped PrimitiveMesh.

Description

Class representing a prism-shaped PrimitiveMesh.

Properties

float left_to_right 0.5
Vector3 size Vector3( 2, 2, 2 )
int subdivide_depth 0
int subdivide_height 0
int subdivide_width 0

Property Descriptions

float left_to_right

Default 0.5
Setter set_left_to_right(value)
Getter get_left_to_right()

Displacement of the upper edge along the X axis. 0.0 positions edge straight above the bottom-left edge.

Vector3 size

Default Vector3( 2, 2, 2 )
Setter set_size(value)
Getter get_size()

Size of the prism.

int subdivide_depth

Default 0
Setter set_subdivide_depth(value)
Getter get_subdivide_depth()

Number of added edge loops along the Z axis.

int subdivide_height

Default 0
Setter set_subdivide_height(value)
Getter get_subdivide_height()

Number of added edge loops along the Y axis.

int subdivide_width

Default 0
Setter set_subdivide_width(value)
Getter get_subdivide_width()

Number of added edge loops along the X axis.

© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.2/classes/class_prismmesh.html