文档

Unity Engine

Unity Engine

simulated

Indicates whether the rigid body should be simulated or not by the physics system.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public bool simulated { get; set; }

Remarks

When not simulated, any attached Collider2D or Joint2D also do not participate in the physics simulation.