0

我尝试制作我的第一个 Unity 2D 游戏(它应该最终成为 brawler),但我的对撞机有点问题。我的玩家对撞机直接落入我的场景对撞机(玩家开始),然后程序意识到这不应该发生。它将播放器向上移植。现在玩家一次又一次地跌倒他向上端口。在 3 个端口之后,玩家降落在地面上并且可以使用,直到他与另一条边缘碰撞并且发生相同的问题。我什至可以直接飞入场景()对撞机本身有时我会出现故障但有时我会摔倒父亲......有人可以告诉我如何解决这个问题吗?问候并感谢所有答案(顺便说一句。我很抱歉我的英语不好,希望你能理解)

4

1 回答 1

0

You can play with Unity's physics 2D settings.

Most relevant to your problem seem to be:

  • Position Iterations (try to raise it)
  • Velocity Threshold (try to raise it)
  • Min Penetration For Penalty (try to lower it)
  • Baumgarte Scale (try to lower it)

A more accurate physic simulation is more expensive at runtime so try fixing your issue by tweeking just enough or your game will get slow.

于 2017-03-18T22:09:48.787 回答