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

  • void set_curve ( value: Curve )
  • Curve get_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

  • void set_section_length ( value: float )
  • float get_section_length ( )

The length of a section of the ribbon.


int section_segments = 3

  • void set_section_segments ( value: int )
  • int get_section_segments ( )

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

  • void set_sections ( value: int )
  • int get_sections ( )

The total number of sections on the ribbon.


Shape shape = 1

  • void set_shape ( value: Shape )
  • Shape get_shape ( )

Determines the shape of the ribbon.


float size = 1.0

  • void set_size ( value: float )
  • float get_size ( )

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.

1

本方法通常需要用户覆盖才能生效。

2

本方法无副作用,不会修改该实例的任何成员变量。

3

本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。

4

本方法用于构造某个类型。

5

调用本方法无需实例,可直接使用类名进行调用。

6

本方法描述的是使用本类型作为左操作数的有效运算符。

7

这个值是由下列位标志构成位掩码的整数。

8

无返回值。