of

@Contract(value = "_, _ -> new", pure = true)
fun of(direction: Vec3d?, velocity: Float): DirectionalParticleData

Creates new directional particle data with the given direction and velocity.

Return

new directional particle data

Parameters

direction

the direction the particle will travel

velocity

the velocity of the particle