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...
RibbonTrailMesh
繼承: PrimitiveMesh < Mesh < Resource < RefCounted < Object
代表豎直絲帶形狀的 PrimitiveMesh,絲帶的寬度可變。
說明
RibbonTrailMesh 代表豎直條帶形狀的網格,條帶的寬度可變。條帶由若干扁平或十字形的分節構成,每一節的長度 section_length 和分段數 section_segments 都相同。條帶會沿著總長度對 curve 進行取樣,這樣這條曲線就決定了條帶沿長度的大小。
該基本網格常用於粒子拖尾。
教學
屬性
|
||
|
||
|
||
|
||
|
列舉
enum Shape: 🔗
Shape SHAPE_FLAT = 0
將網格指定為單個扁平的面。
Shape SHAPE_CROSS = 1
將網格指定為兩個互相垂直的面,形成十字形。
屬性說明
Determines the size of the ribbon along its length. The size of a particular section segment is obtained by multiplying the baseline size 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.
條帶中一節的長度。
條帶中一節的段數。每一段的大小是根據對 curve 的取樣確定的。更高的值會生成更細緻的條帶,但以性能為代價。
條帶中分節的數量。
決定條帶的形狀。
條帶的基礎大小。通過將這個大小乘以 curve 上給定位置對應的值,就可以得到分節上某一段的大小。