关于“设置模板移动的”的问题(About MovementTemplates)

MovementTemplates现在遇到一个小问题,比如我设置一个地面行走的敌人追踪我,但如果我跳跃的话,敌人会进行y轴追踪,导致敌人会产生奇怪的振动,我只能把上下移动率变成0来解决,不知道有没有其他办法解决这个问题。
我建议这个功能加入“限制移动方式”或者限制“X、Y轴追踪”的选项,这样也能不用视线系统就能做到一些功能(比如背对着你就不会移动)

I’ve run into a small issue with Movement Templates. For example, when I set up a ground-based enemy to chase me, if I jump, the enemy will also track along the Y-axis, which causes weird vibrating behavior. The only way I can fix this right now is by setting the vertical movement rate to 0. I wonder if there are other ways to solve this problem.

I suggest adding a “Restrict Movement Mode” option or separate “X/Y Axis Tracking” toggles to this feature. This way, we could achieve mechanics without relying on the sight system—like making enemies stop moving if their backs are turned toward you, for instance.

此问题可能发生在侧视游戏中,因为垂直速度仍在尝试应用。因此,抖动可能来自物体试图向上移动,但随后重力作用于其上。

解决方法是将垂直速度设置为 0。大多数侧视情况不需要垂直移动,因此这不会影响游戏玩法。飞行敌人通常重力为 0,因此它们可以有垂直速度。

您可以在每个特定状态中设置垂直速度为 0:

或者,您可以在 MoveAndJumpSettings 节点中为所有状态统一设置垂直速度为 0:

1 个赞

感谢您的回复。实际上,我就是这样解决的,但我认为我们应该考虑增加一些选项来丰富这个功能。

1 个赞