PV_Cos

Category: Particles
Since engine version: 8.0 OC

Description

The value will is calculates as cos(value) * amplitude + offset with value given in degrees.

Syntax

array PV_Cos(int value, int amplitude, int offset);

Parameters

value:
Value or value provider to calculate the cosine of. The result of PV_Linear can be used to evaluate the cosine function linearly over time.
amplitude:
Amplitude of result. May be a value or value provider.
offset:
[opt] Offset added to result. May be a value or value provider. Defaults to zero.

Remarks

See the particle documentation for further explanations of the particle system.
See PV_Random for another example with PV_Cos.
See also: CreateParticle, PV_Direction, PV_KeyFrames, PV_Linear, PV_Random, PV_Sin, PV_Speed, PV_Step
Zapper, 2016-02