← Documentation Home

SetParticleDirection

Category: Particle Effects (Pro)

Back to System Functions


Signature

SetParticleDirection(system As Integer, minimumDegrees As Double, maximumDegrees As Double)

Returns

Void

Description

Sets the randomly selected starting direction range for newly emitted particles. Zero degrees points right and positive angles turn clockwise in screen coordinates.

Performance and behavior

Use the same value twice for a fixed direction.

Pro feature: compiling code that uses this function requires a license with the GamePhysics feature enabled.

Example

SetParticleDirection particles, -110, -70