文档

Unity Engine

Unity Engine

collideConnected

Can the joint collide with the other Rigidbody2D object to which it is attached?
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
警告
Removed. Joint2D.collideConnected has been obsolete. Use Joint2D.enableCollision instead
public bool collideConnected { get; set; }

Remarks

Additional Resources: Rigidbody2D class, Joint2D.connectedBody.