Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

PointEffector2D.forceVariation

Switch to Manual
public float forceVariation;

Description

The variation of the magnitude of the force to be applied.

A random value between 0 and forceVariation is used and added to the force magnitude. The forceVariation can be negative to randomly reduce the force magnitude.

See Also: forceMagnitude.