文档

Unity Engine

Download Unity

Unity Engine

fastRotationAllowed

This allows this body to bypass rotational speed limits. This should only be used for circular objects, such as wheels, balls etc.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public bool fastRotationAllowed { get; set; }

Remarks

By default, Unity limits how fast a body rotates to avoid forces becoming too large and objects passing through each other incorrectly. Set this property to
true
to remove that limit for this body.