找回密碼
 注冊帳號

掃一掃,訪問微社區

camera.velocity 速度

2015-1-4 08:07| 發布者: 楊炎| 查看: 1693| 評論: 0|原作者: 蠻牛|來自: unity3d腳本manual

摘要: camera.velocity 速度varvelocity:vector3description描述get the world-space speed of the camera (read only).獲取世界空間中相機的速度(只讀)。this camera's motion in units per second as it was during th ...

camera.velocity 速度

varvelocity: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.

該相機是自上一幀以秒為單位的運動。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

void update() {

print("camera moving at " + camera.velocity.magnitude + " m/s");

}

}

function update () {

print ("camera moving at " + camera.velocity.magnitude + " m/s");

}

相關閱讀

文章點評
相關文章
女校游泳队彩金