瀏覽代碼

docs: correct camera.getWorldDirection()

Jost Schmithals 8 年之前
父節點
當前提交
5bea97a4d4
共有 1 個文件被更改,包括 7 次插入3 次删除
  1. 7 3
      docs/api/cameras/Camera.html

+ 7 - 3
docs/api/cameras/Camera.html

@@ -71,9 +71,13 @@
 
 
 		<h3>[method:Vector3 getWorldDirection]( [page:Vector3 optionalTarget] )</h3>
 		<h3>[method:Vector3 getWorldDirection]( [page:Vector3 optionalTarget] )</h3>
 		<div>
 		<div>
-		Returns a vector representing the direction in which the camera is looking,
-		in world space. If the [page:Vector3 optionalTarget] is set, returns a vector representing the direction
-		from the camera's position to the [page:Vector3 optionalTarget].
+		Returns a [page:Vector3] representing the world space direction in which the camera is looking.<br /><br />
+		
+		Note: This is not the camera’s positive, but its negative z-axis, in contrast to
+		[page:Object3D.getWorldDirection getWorldDirection] of the base class (Object3D).<br /><br />
+		
+		If an [page:Vector3 optionalTarget] vector is specified, the result will be copied into this vector
+		(which can be reused in this way), otherwise a new vector will be created.
 		</div>
 		</div>
 
 
 		<h3>[method:null lookAt]( [page:Vector3 target] )</h3>
 		<h3>[method:null lookAt]( [page:Vector3 target] )</h3>