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

スクリプト言語

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

Rigidbody.SetDensity

Switch to Manual
public function SetDensity(density: float): void;

Description

不変な密度と仮定してアタッチされたコライダをもとに質量を設定します

This is useful to set the mass to a value which scales with the size of the colliders.

	rigidbody.SetDensity(1.5);