Away3D 4.x 更改投影中心
如何使用 perspectiveLens
更改 Away3D 中的投影中心。
我知道可以使用标准 flash 3d 库来完成,使用:
root.transform.perspectiveProjection.projectionCenter = new Point(center.x, center.y);
但是在查看 Away3D 类时不存在这样的函数。
away3D是否通过其他方法实现了这一点?
How to alter the projection center in Away3D using a perspectiveLens
.
I know it can be done with the standard flash 3d library, using:
root.transform.perspectiveProjection.projectionCenter = new Point(center.x, center.y);
But no such function exists when looking into the Away3D classes.
Does away3D achieve this by using another method?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Object3d 或任何从它衍生的东西确实有“pivotPoint”。
但通常您只想移动相机。
编辑:
如果您只是想旋转一个对象,请尝试 pan()、pitch() 和 roll()。
Object3d or anything that descends from it does have 'pivotPoint'.
But usually you'll just want to move your camera around.
edit:
If you're just trying to rotate an object try pan() pitch() and roll().