VisualShaderNodeParticleAccelerator

继承: VisualShaderNode < Resource < RefCounted < Object

A visual shader node that accelerates particles.

描述

Particle accelerator can be used in "process" step of particle shader. It will accelerate the particles. Connect it to the Velocity output port.

属性


枚举

enum Mode:

Mode MODE_LINEAR = 0

The particles will be accelerated based on their velocity.

Mode MODE_RADIAL = 1

The particles will be accelerated towards or away from the center.

Mode MODE_TANGENTIAL = 2

The particles will be accelerated tangentially to the radius vector from center to their position.

Mode MODE_MAX = 3

Represents the size of the Mode enum.


属性说明

Mode mode = 0

  • void set_mode ( value: Mode )
  • Mode get_mode ( )

Defines in what manner the particles will be accelerated.

1

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

2

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

3

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

4

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

5

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

6

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

7

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

8

无返回值。