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

スクリプト言語

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

ConstantForce.torque

Switch to Manual
public var torque: Vector3;

Description

毎フレームRigidbodyのトルクに力を加えます

	// Rotates the object around the world y-axis
	constantForce.torque = Vector3.up * 2;