2021SC@SDUSC ClayGL Camera类分析(六)
接上文
文章目录
1.getScene() → {clay.Scene}
获取已安装的场景。
返回值:
类型 clay.Scene
getScene: function () {
return this._scene;
},
2.getWorldPosition(outopt) → {clay.Vector3}
从世界变换中获取世界位置。
参数:
名称 | 类型 | 属性 |
---|---|---|
out | clay.Vector3 | 可选 |
返回值:
类型 clay.Vector3
getWorldPosition: function (out) {
// PENDING
if (this.transformNeedsUpdate()) {
this.updateWorldTransform();
}
var m = this.worldTransform.array;
if (out) {
var arr = out.array;
arr[