IrrAddGravityParticleAffector

section index

## NAME

IrrAddGravityParticleAffector - Add an affector to the particle system to alter their position with gravity

## SYNOPSIS

*affector.l = IrrAddGravityParticleAffector(*particleSystem.l, x.f, y.f, z.f, timeForceLost.l)

## INPUTS

*particleSystem.l | - | a Pointer to a Particle System (Object)
x.f,y.f,z.f | - | Direction and force of gravity
timeForceLost.l | - | Time in milli seconds when the force of the emitter is totally lost and the particle does not move any more. This is the time where gravity fully affects the particle.

## FUNCTION

Adds a gravity affector. This affector modifies the direction of the particle. It assumes that the particle is fired out of the emitter with huge force, but is loosing this after some time and is catched by the gravity then. This affector is ideal for creating things like fountains.

## EXAMPLE

       *affector.l = IrrAddGravityParticleAffector(*ps,0,0,0,0,1000)

## RESULT

A pointer to a Affector.