团结角色控制器弹跳

发布于 2025-02-13 15:52:21 字数 238 浏览 1 评论 0原文

我有一个带有字符控制器的游戏对象。我将其设置为移动并跳跃。一切正常,但是当我添加动画师时,该对象降落在包含盒子对撞机的其他对象上后一次反弹。

我已经尝试了多种方法,但是它们并没有带来积极的结果。我试图编辑FBX模型,更改锚点,更改对象上字符控制器的位置。

当我删除动画师时,问题就消失了,但是我需要使用动画动画。由于某种原因,它会影响重力。没有它,玩家的游戏对象就会跳得更高。不久前,我一直在Unity工作,我不记得如何解决这个问题。

I have a game object with a Character controller. I set it up to move and jump. Everything works fine, but when I add an Animator, the object bounces once after landing on some other object that contains the box collider.

I have already tried many ways, but they did not lead to a positive result. I tried to edit the fbx model, change the anchor point, change the position of the Character controller on the object.

When I removed the animator, the problem disappeared, but I need to use movement animation. And for some reason it affects gravity. Without it, the player's game object jumps higher. I've been working in Unity not so long ago and I don't remember how to solve this problem.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

烟雨凡馨 2025-02-20 15:52:21

如果您使用的是刚体组件,则可能需要为玩家制作物理材料。物理材料定义了对象的某些属性,例如它弹跳多少。在资产文件夹中:单击创建>物理材料

这将创建物理材料。编辑保镖,并将其添加到角色的僵化体中。

If you are using the RigidBody component, you may need to make a physics material for your player. The physics material defines some properties of the object such as how much it bounces. In the Assets folder: click create > physic material

This will create a physics material. Edit the bounciness and add it to the RigidBody of your character.

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