尝试制作动画时在 Java3D 中失去旋转
我创建了一个Cylinder
并旋转它,使其侧躺。这很好用。
不过我现在正在尝试为其添加一些动画。我已经使用 PositionInterpolar
对动画进行了编码,它工作正常并且沿着右轴移动。
我遇到的问题是,它似乎覆盖我最初用来旋转圆柱体的Transform3D
,所以我的圆柱体没有直立并侧向移动。
有什么想法吗?我需要以不同的方式旋转对象吗?
I have created a Cylinder
and rotated it so it lies on its side. This works fine.
However I'm now trying to add some animation to it. I have coded the animations with a PositionInterpolar
, and it works fine and moves across the right axis.
The problem I have, is that it seems to overwrite my Transform3D
I used to rotate the cylinder in the first place, so my cylinder is not standing upright and moving side ways.
Any ideas? Do I need to rotate the object in a different way?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许这可能是一个简单的例子,我记得 Java3D 喜欢你为每次旋转等使用不同的 Transform3D 对象......例如:
这是你如何进行旋转等......?您可以在这里查看教程:
http://www.java -tips.org/other-api-tips/java3d/introduction-to-java3d-api-5.html
Perhaps this could be a simple instance where as I recall Java3D likes you to use different Transform3D objects for each rotation etc.... For instance:
Is this how your are doing your rotations etc...? You can see the tutorial here:
http://www.java-tips.org/other-api-tips/java3d/introduction-to-java3d-api-5.html