camera.velocity 速度

2015-1-4 08:07| 发布者: 杨炎| 查看: 1486| 评论: 0|原作者: 蛮牛|来自: yzc88亚洲城脚本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");

}

相关阅读

文章点评
相关文章