What's the difference between move.direction and move.angle? #2416
-
Hi there, Here's the pen where you can see the issue: https://codepen.io/htopia/pen/dyzRWxK Any idea why this happens? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @htopia,
The particles movement has two other properties: I'll explain
|
Beta Was this translation helpful? Give feedback.
Hi @htopia,
angle
sets the spread angle of the movement for the randomization. If you have particles going down like in the sample, a smaller angle spread them less then a wider one.direction
is the direction of the particles, which can be a defined angle (numeric) or a general direction (top
,left
, etc.).The particles movement has two other properties:
random
andstraight
. The first one multiplies the movement speed with a random factor, the second one interact withangle
, adding to the direction angle a random value betweenangle
min andangle
max.I'll explain
straight
better, it's a bit complicated:true
, the particle will follow the exact direction set in the config, for ex…