Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


speedVariation

The speed variation (from zero to the variation) added to base speed to be applied.
Read time 1 minuteLast updated 6 days ago

Definition

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

Remarks

A random value between 0 and speedVariation is used and added to the speed. The speedVariation can be negative to randomly reduce the speed.
Additional Resources: SurfaceEffector2D.speed.