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.

TorusMesh

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

表示圓環 PrimitiveMesh 的類。

說明

表示圓環 PrimitiveMesh 的類。

屬性

float

inner_radius

0.5

float

outer_radius

1.0

int

ring_segments

32

int

rings

64


屬性說明

float inner_radius = 0.5 🔗

  • void set_inner_radius(value: float)

  • float get_inner_radius()

圓環的內半徑。


float outer_radius = 1.0 🔗

  • void set_outer_radius(value: float)

  • float get_outer_radius()

圓環的外半徑。


int ring_segments = 32 🔗

  • void set_ring_segments(value: int)

  • int get_ring_segments()

建構每個圓環的邊緣的數量。


int rings = 64 🔗

  • void set_rings(value: int)

  • int get_rings()

構成圓環的切片數。