기술 자료

Unity Engine

Download Unity

Unity Engine

connectedBody

The Rigidbody2D object to which the other end of the joint is attached (ie, the object without the joint component).
읽는 시간 1분최근 업데이트: 2달 전

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public Rigidbody2D connectedBody { get; set; }

Remarks

If this property is set to null then the joint attaches to a fixed point in space rather than another Rigidbody2D.
Unity does not support connecting a joint to a Rigidbody2D in a different Scene that is using a local physics Scene. If a joint is connected to a Rigidbody2D, and then that Rigidbody2D is moved to a Scene that uses LocalPhysicsMode.Physics2D, then the joint is automatically disconnected from the Rigidbody2D.