任何logic中的运输动画旋转

发布于 2025-02-11 01:03:54 字数 212 浏览 2 评论 0原文

我有一个由具有一定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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

闻呓 2025-02-18 01:03:54

可能是一个功能,而不是错误。

您可以尝试在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:

enter image description here

怎樣才叫好 2025-02-18 01:03:54

引用非常有用的任何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().

agent presentation group here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文