跳转至

Particle Motion Dynamic Component For 1.10.0

文档版本:1.21.0.24

This component specifies the dynamic properties of the particle, from a simulation standpoint what forces act upon the particle? These dynamics alter the velocity of the particle, which is a combination of the direction of the particle and the speed. Particle direction will always be in the direction of the velocity of the particle.

架构

particle_motion_dynamic:
{
  array "linear_acceleration" : opt
  {
    0 "<any array element>"
  }
  0 "linear_drag_coefficient"
  0 "rotation_acceleration"
  0 "rotation_drag_coefficient"
}
linear_accelerationarray
The linear acceleration applied to the particle. Units are blocks/sec/sec
linear_acceleration
<any array element>0
0:
string
0:
number
linear_drag_coefficient0
Using the equation: acceleration = -linear_drag_coefficient*velocity where velocity is the current direction times speed. Think of this as air-drag. The higher the value, the more drag evaluated every frame
rotation_acceleration0
Acceleration applies to the rotation speed of the particle.
rotation_drag_coefficient0
Drag applied to rotation.