away3d 全局坐标?
如何引用对象的全局坐标?就像在PV3D中一样,
Away3d中的object.sceneZ x,y,z将坐标返回到对象显示容器,有没有办法检索全局坐标?
How can I refer to global coordinates of an aboject? like in PV3D was for example object.sceneZ
x, y, z in Away3d return coordinates to object display container, there is a way to retrieve the global coordinates?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我刚刚查看了文档,看到了 sceneTransform< /a> 属性是 Matrix3D 实例,因此您可以通过 sceneTransforms 的 位置 属性。
我想它会是这样的:
我还没有尝试过这个,但它应该有效(著名的最后一句话:))
I just had a look at the docs and saw the sceneTransform property which is a Matrix3D instance, so you can access the global coordinates through the sceneTransforms' position property.
I would imagine it would something like:
I haven't tried this, but it should work (famous last words :) )