挑选一个物体。
如何将鼠标坐标(实际上是0,0,因为鼠标锁定到中间位置)转换为世界坐标?
如何获得实际的观看方向?
伪代码
int mx,my = convert(Mouse.getX()), convert(Mouse.getY())
int mz = ??
int dx, dy, dz = ?? # direction of view
drawRay(mx, my, mz,
dx, dy, dz + 10) # 10 shall be the range to pick
# later check for intersections