Particle Motion Dynamic Component For 1.10.0¶
文档版本:1.21.50.25
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_acceleration
:array- The linear acceleration applied to the particle. Units are blocks/sec/sec
linear_acceleration
linear_drag_coefficient
:0- 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_acceleration
:0- Acceleration applies to the rotation speed of the particle.
rotation_drag_coefficient
:0- Drag applied to rotation.