任何logic中的运输动画旋转
我有一个由具有一定3D动画的代理类型定义的运输舰队(一个开放侧)。代理本身设置为禁用动画旋转,就像动画一样的ID以保持相同的方向。
当我抓住转运蛋白时,unit.isautomatic ... rotation()按照代理设置显示false。但是,一旦转运蛋白开始移动(MoveByTransporter块)并进入路径的一部分,而路径是不同的方向),事物仍然旋转。我在这里做错了什么还是一个错误?
I have a transporter fleet defined by an agent type that has a certain 3D animation (cube with one open side). The agent itself is set up to disable animation rotation, as Id like the animation to maintain the same orientation.
When I seize the transporter, unit.isAutomatic...Rotation() shows false as per the agent setup. However, once the transporter starts moving (MoveByTransporter block) and goes onto a section of path that is a different orientation) the thing still rotates. Am I doing something wrong here or is it a bug?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
可能是一个功能,而不是错误。
您可以尝试在3D动画属性中覆盖它。切换到动态值(因此一直重新计算)并输入您想要的RAD值:
Might be a feature, not a bug.
You can try to override it in your 3D animation properties. Switch to a dynamic value (so it is recomputed all the time) and enter some rad value you want:
引用非常有用的任何logic支持 - 它还不是转运器的功能(禁用旋转位)。他们建议的解决方法(确实有效)是基本上抵消了发生的旋转:
在运输剂中:创建一个组;将所有绘制的/3D元素添加到其中,然后将旋转设置为
-GetRotation()
。To quote the very helpful AnyLogic Support - its not a feature of transporters yet (the disabling rotation bit). Their suggested workaround - which does work - is to basically counteract the rotation as it happens:
In the transporter agent: create a group; add all the drawn/3D elements to it, and then set the rotation to
-getRotation()
.