Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


forceVariation

The variation of the magnitude of the force to be applied.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public float forceVariation { get; set; }

Remarks

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.
Additional Resources: _forceMagnitude