Camera翻译:Yīm
- actualRenderingPath
- allCameras
- aspect
- backgroundColor
- cameraToWorldMatrix
- clearFlags
- CopyFrom
- cullingMask
- current
- depthTextureMode
- depth
- farClipPlane
- fieldOfView
- layerCullDistances
- main
- nearClipPlane
- OnPostRender
- OnPreCull
- OnPreRender
- OnRenderImage
- OnRenderObject
- OnWillRenderObject
- orthographicSize
- orthographic
- pixelHeight
- pixelRect
- pixelWidth
- projectionMatrix
- rect
- renderingPath
- RenderToCubemap
- RenderWithShader
- Render
- ResetAspect
- ResetProjectionMatrix
- ResetReplacementShader
- ResetWorldToCameraMatrix
- ScreenPointToRay
- ScreenToViewportPoint
- ScreenToWorldPoint
- SetReplacementShader
- targetTexture
- velocity
- ViewportPointToRay
- ViewportToScreenPoint
- ViewportToWorldPoint
- worldToCameraMatrix
- WorldToScreenPoint
- WorldToViewportPoint
Camera.velocity 速度
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.
这是相机在上一帧以单位每秒的云的运动。
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");
}
最后修改:2011年3月6日 Sunday 21:32