ドキュメント

Unity Engine

Unity Engine

speedVariation

The speed variation (from zero to the variation) added to base speed to be applied.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.