pub struct Particles {
pub start_positions: Vec<Vec3>,
pub start_velocities: Vec<Vec3>,
pub texture_transforms: Option<Vec<Mat3>>,
pub colors: Option<Vec<Color>>,
}Expand description
Used for defining the attributes for each particle in a ParticleSystem, for example its starting position and velocity.
Each list of attributes must contain the same number of elements as the number of particles.
Fields§
§start_positions: Vec<Vec3>Initial positions of each particle in world coordinates.
start_velocities: Vec<Vec3>Initial velocities of each particle defined in the world coordinate system.
texture_transforms: Option<Vec<Mat3>>The texture transform applied to the uv coordinates of each particle.
colors: Option<Vec<Color>>A custom color for each particle.