AddParticlesForce

Family: Particles · One form

What it does

AddParticlesForce adds Force on a Particles object. It takes ID (an integer), starttime (a float), endtime (a float), x (a float) and y (a float), and returns nothing.

Syntax

AddParticlesForce(ID integer, starttime float, endtime float, x float, y float)

Parameters

NameType
IDinteger
starttimefloat
endtimefloat
xfloat
yfloat

Every form returns

nothing

Example · generated

AddParticlesForce(1, 1.0, 1.0, 100.0, 120.0)DO  Sync()LOOP

AddParticlesForce is called with values of the types its signature asks for. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

38 commands in Particles