浏览代码

Corrected documentation.

Areloch 8 年之前
父节点
当前提交
749797dc4f
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      Engine/source/scene/sceneObject.cpp

+ 3 - 2
Engine/source/scene/sceneObject.cpp

@@ -1518,8 +1518,9 @@ DefineEngineMethod( SceneObject, isGlobalBounds, bool, (),,
 }
 
 DefineConsoleMethod(SceneObject, setForwardVector, void, (VectorF newForward, VectorF upVector), (VectorF(0, 0, 0), VectorF(0, 0, 1)),
-   "Get the number of static fields on the object.\n"
-   "@return The number of static fields defined on the object.")
+   "Sets the forward vector of a scene object, making it face Y+ along the new vector.\n"
+   "@param The new forward vector to set.\n"
+   "@param (Optional) The up vector to use to help orient the rotation.")
 {
    object->setForwardVector(newForward, upVector);
 }