unity - 如何使刚体不会在另一个刚体之上移动

问题描述 投票:0回答:1

我的场景是狗把桌子从熟睡的人身边推开,偷走了他们的甜甜圈。

enter image description here

所以我为桌子、盘子和甜甜圈对象制作了刚体。

enter image description here

enter image description here

enter image description here

问题在于,当玩家推动桌子时,其上方的盘子移动到桌子边界的速度太快。我需要它保持在桌子上方。 我试图冻结它的位置并设置运动学,但没有成功。

是配置问题吗?或者我需要用其他方式编码吗?

unity-game-engine
1个回答
0
投票

尝试冻结刚体 x 和 z 在刚体中使用约束选项卡

© www.soinside.com 2019 - 2024. All rights reserved.