Up to date

This page is up to date for Godot 4.3. If you still find outdated information, please open an issue.

PrismMeshΒΆ

Inherits: PrimitiveMesh < Mesh < Resource < RefCounted < Object

Class representing a prism-shaped PrimitiveMesh.

DescriptionΒΆ

Class representing a prism-shaped PrimitiveMesh.

PropertiesΒΆ

float

left_to_right

0.5

Vector3

size

Vector3(1, 1, 1)

int

subdivide_depth

0

int

subdivide_height

0

int

subdivide_width

0


Property DescriptionsΒΆ

float left_to_right = 0.5 πŸ”—

  • void set_left_to_right(value: float)

  • float 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 = Vector3(1, 1, 1) πŸ”—

Size of the prism.


int subdivide_depth = 0 πŸ”—

  • void set_subdivide_depth(value: int)

  • int get_subdivide_depth()

Number of added edge loops along the Z axis.


int subdivide_height = 0 πŸ”—

  • void set_subdivide_height(value: int)

  • int get_subdivide_height()

Number of added edge loops along the Y axis.


int subdivide_width = 0 πŸ”—

  • void set_subdivide_width(value: int)

  • int get_subdivide_width()

Number of added edge loops along the X axis.