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

スクリプト言語

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

Camera.velocity

Switch to Manual
public var velocity: Vector3;

Description

Get the world-space speed of the camera (Read Only).

This camera's motion in units per second as it was during the last frame.

	function Update () {
		print ("Camera moving at " + camera.velocity.magnitude + " m/s");
	}