Просмотр исходного кода

Jsodc: Improve Object3D (#30546)

* Jsodc: Improve Object3D

* Update Object3D.js

---------

Co-authored-by: Samuel Rigaud <srigaud@duodisplay.com>
Co-authored-by: Michael Herzog <michael.herzog@human-interactive.org>
Samuel Rigaud 1 год назад
Родитель
Сommit
b9068abb9a
1 измененных файлов с 4 добавлено и 3 удалено
  1. 4 3
      src/core/Object3D.js

+ 4 - 3
src/core/Object3D.js

@@ -616,8 +616,8 @@ class Object3D extends EventDispatcher {
 	 * This method does not support objects having non-uniformly-scaled parent(s).
 	 * This method does not support objects having non-uniformly-scaled parent(s).
 	 *
 	 *
 	 * @param {number|Vector3} x - The x coordinate in world space. Alternatively, a vector representing a position in world space
 	 * @param {number|Vector3} x - The x coordinate in world space. Alternatively, a vector representing a position in world space
-	 * @param {number} y - The y coordinate in world space.
-	 * @param {number} z - The z coordinate in world space.
+	 * @param {number} [y] - The y coordinate in world space.
+	 * @param {number} [z] - The z coordinate in world space.
 	 */
 	 */
 	lookAt( x, y, z ) {
 	lookAt( x, y, z ) {
 
 
@@ -1162,7 +1162,8 @@ class Object3D extends EventDispatcher {
 	 * Serializes the 3D object into JSON.
 	 * Serializes the 3D object into JSON.
 	 *
 	 *
 	 * @param {?(Object|String)} meta - An optional value holding meta information about the serialization.
 	 * @param {?(Object|String)} meta - An optional value holding meta information about the serialization.
-	 * @return {Object} The JSON.
+	 * @return {Object} A JSON object representing the serialized 3D object.
+	 * @see {@link ObjectLoader#parse}
 	 */
 	 */
 	toJSON( meta ) {
 	toJSON( meta ) {
 
 

粤ICP备19079148号