文档

Unity Engine

Unity Engine

positionIterations

The number of iterations of the physics solver when considering objects' positions.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public static int positionIterations { get; set; }

Remarks

A higher number of interations will improve accuracy at the expense of processing overhead.
Additional Resources: Physics2D.velocityIterations.