Up to date

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

CapsuleMesh

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

表示胶囊状 PrimitiveMesh 的类。

描述

表示胶囊状 PrimitiveMesh 的类。

属性

float

height

2.0

int

radial_segments

64

float

radius

0.5

int

rings

8


属性说明

float height = 2.0

  • void set_height ( float value )

  • float get_height ( )

胶囊网格的总高度(包括半球形末端)。


int radial_segments = 64

  • void set_radial_segments ( int value )

  • int get_radial_segments ( )

胶囊网格上的径向线段数。


float radius = 0.5

  • void set_radius ( float value )

  • float get_radius ( )

胶囊网格的半径。


int rings = 8

  • void set_rings ( int value )

  • int get_rings ( )

沿胶囊高度的环数。