Defines the velocity of particles over their lifetime, allowing for linear and orbital velocity (in degrees) adjustments. Supports constant values, random ranges, or curves (Bézier or easing) for each axis.
isActive: falselinear: { x: 0.0, y: 0.0, z: 0.0 }orbital: { x: 0.0, y: 0.0, z: 0.0 } Copy
isActive: falselinear: { x: 0.0, y: 0.0, z: 0.0 }orbital: { x: 0.0, y: 0.0, z: 0.0 }
// Linear velocity with a constant valuelinear: { x: 1, y: 0, z: -0.5 };// Linear velocity with random rangeslinear: { x: { min: -1, max: 1 }, y: { min: 0, max: 2 }};// Linear velocity using a Bézier curvelinear: { z: { type: 'bezier', bezierPoints: [ { x: 0, y: 0, percentage: 0 }, { x: 0.5, y: 2 }, { x: 1, y: 10, percentage: 1 } ], scale: 2 }};// Orbital velocity with a constant valueorbital: { x: 3, y: 5, z: 0 };// Orbital velocity using an easing curveorbital: { x: { type: 'easing', curveFunction: (time) => Math.sin(time * Math.PI), scale: 1.5 }}; Copy
// Linear velocity with a constant valuelinear: { x: 1, y: 0, z: -0.5 };// Linear velocity with random rangeslinear: { x: { min: -1, max: 1 }, y: { min: 0, max: 2 }};// Linear velocity using a Bézier curvelinear: { z: { type: 'bezier', bezierPoints: [ { x: 0, y: 0, percentage: 0 }, { x: 0.5, y: 2 }, { x: 1, y: 10, percentage: 1 } ], scale: 2 }};// Orbital velocity with a constant valueorbital: { x: 3, y: 5, z: 0 };// Orbital velocity using an easing curveorbital: { x: { type: 'easing', curveFunction: (time) => Math.sin(time * Math.PI), scale: 1.5 }};
Defines the velocity of particles over their lifetime, allowing for linear and orbital velocity (in degrees) adjustments. Supports constant values, random ranges, or curves (Bézier or easing) for each axis.
Default
Example