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.
Checking the stable version of the documentation...
TubeTrailMesh
繼承: PrimitiveMesh < Mesh < Resource < RefCounted < Object
代表直管狀的 PrimitiveMesh,寬度可變。
說明
TubeTrailMesh 代表直管狀的網格,寬度可變。管身由若干圓柱形分區構成,每個分區的長度 section_length 和環數 section_rings 都是一致的。會沿著管身的總長度對 curve 取樣,這樣該曲線就確定了管子半徑沿長度的變化方式。
這個基本網格通常用於粒子拖尾。
教學
屬性
|
||
|
||
|
||
|
||
|
||
|
||
|
屬性說明
如果為 true ,則在管子的底部生成蓋子。如果相機永遠不可能見到蓋子,那麼設定為 false 可以加快生成和算繪的速度。
如果為 true ,則在管子的頂部生成蓋子。如果相機永遠不可能見到蓋子,那麼設定為 false 可以加快生成和算繪的速度。
Determines the radius of the tube along its length. The radius of a particular section ring is obtained by multiplying the baseline radius by the value of this curve at the given distance. For values smaller than 0, the faces will be inverted. Should be a unit Curve.
管身的面數。例如,取值 5 表示管身為五邊形。值越高,管身細節越高,代價是犧牲性能。
管身的基礎半徑。將該半徑與給定距離下 curve 的取值相乘,就得到了某個分區中某個環的半徑。
管身分區的長度。
分區中環的數量。每個環都會對 curve 進行取樣,從而決定其半徑。值越高,管身細節越高,代價是犧牲性能。
管身分區總數。