言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

Joint.connectedBody

Switch to Manual
public var connectedBody: Rigidbody;

Description

別のrigidbodyオブジェクトの参照

設定されていない場合は、ジョイントはオブジェクトを世界空間に接続させます。

	// Connects the joint to the world instead of another rigidbody
	hingeJoint.connectedBody = null;
	
	// Connects the joint to another body
	var otherBody : Rigidbody;
	hingeJoint.connectedBody = otherBody;