RibbonTrailMesh
继承: PrimitiveMesh
< Mesh
< Resource
< RefCounted
< Object
Represents a straight ribbon-shaped PrimitiveMesh
with variable width.
描述
RibbonTrailMesh represents a straight ribbon-shaped mesh with variable width. The ribbon is composed of a number of flat or cross-shaped sections, each with the same section_length
and number of section_segments
. A curve
is sampled along the total length of the ribbon, meaning that the curve determines the size of the ribbon along its length.
This primitive mesh is usually used for particle trails.
属性
枚举
enum Shape:
Shape SHAPE_FLAT = 0
Gives the mesh a single flat face.
Shape SHAPE_CROSS = 1
Gives the mesh two perpendicular flat faces, making a cross shape.
属性说明
Curve
curve
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.
float
section_length = 0.2
The length of a section of the ribbon.
int
section_segments = 3
The number of segments in a section. The curve
is sampled on each segment to determine its size. Higher values result in a more detailed ribbon at the cost of performance.
int
sections = 5
The total number of sections on the ribbon.
Shape shape = 1
Determines the shape of the ribbon.
float
size = 1.0
The baseline size of the ribbon. The size of a particular section segment is obtained by multiplying this size by the value of the curve
at the given distance.
本方法通常需要用户覆盖才能生效。
本方法无副作用,不会修改该实例的任何成员变量。
本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。
本方法用于构造某个类型。
调用本方法无需实例,可直接使用类名进行调用。
本方法描述的是使用本类型作为左操作数的有效运算符。
这个值是由下列位标志构成位掩码的整数。
无返回值。