【发布时间】:2014-01-20 10:11:40
【问题描述】:
我对 Babylon.js 中的坐标系统有点困惑。也就是说,当我使用以下语句序列时:
var camera = new BABYLON.ArcRotateCamera("Camera", 0, 0, 50, new BABYLON.Vector3(0, 0, 0), scene);
var sphere1 = BABYLON.Mesh.CreateSphere("sphere1", 16, 1.0, scene);
球体被绘制在屏幕的中心。好的。当我使用以下序列时:
var camera = new BABYLON.ArcRotateCamera("Camera", 50, 0, 0, new BABYLON.Vector3(0, 0, 0), scene);
var sphere1 = BABYLON.Mesh.CreateSphere("sphere1", 16, 1.0, scene);
没有绘制球体。
我知道通常坐标(在 CG 中)如下:Oy - 垂直,Ox - 水平,Oz - 指向屏幕。因此,在第二个序列中,相机位于 xOz 平面(即地面)中的点 x = 50,并且正在寻找球体所在的原点。
我猜我在路上的某个地方迷路了。你能帮忙理解我哪里错了吗?
谢谢,
Eb_cj
【问题讨论】:
标签: babylonjs