文档

Unity Engine


User Manual

Script Reference

Unity Engine


otherBodyInstanceID

Instance ID of the second body in this contact pair.
阅读时间1 分钟最后更新于 24 天前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
public int otherBodyInstanceID { get; }

Remarks

Note that this can be Rigidbody or ArticulationBody.