Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

PrismMesh

繼承: PrimitiveMesh < Mesh < Resource < RefCounted < Object

表示棱柱形 PrimitiveMesh 的類。

說明

表示棱柱形 PrimitiveMesh 的類。

屬性

float

left_to_right

0.5

Vector3

size

Vector3(1, 1, 1)

int

subdivide_depth

0

int

subdivide_height

0

int

subdivide_width

0


屬性說明

float left_to_right = 0.5 🔗

  • void set_left_to_right(value: float)

  • float get_left_to_right()

上邊緣沿 X 軸的位移。0.0 將邊緣定位在左下邊緣的正上方。


Vector3 size = Vector3(1, 1, 1) 🔗

棱鏡的大小。


int subdivide_depth = 0 🔗

  • void set_subdivide_depth(value: int)

  • int get_subdivide_depth()

沿 Z 軸新增的邊迴圈數。


int subdivide_height = 0 🔗

  • void set_subdivide_height(value: int)

  • int get_subdivide_height()

沿 Y 軸新增的邊迴圈數。


int subdivide_width = 0 🔗

  • void set_subdivide_width(value: int)

  • int get_subdivide_width()

沿 X 軸新增的邊迴圈數。