团结角色控制器弹跳
我有一个带有字符控制器的游戏对象。我将其设置为移动并跳跃。一切正常,但是当我添加动画师时,该对象降落在包含盒子对撞机的其他对象上后一次反弹。
我已经尝试了多种方法,但是它们并没有带来积极的结果。我试图编辑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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您使用的是刚体组件,则可能需要为玩家制作物理材料。物理材料定义了对象的某些属性,例如它弹跳多少。在资产文件夹中:单击创建>物理材料
这将创建物理材料。编辑保镖,并将其添加到角色的僵化体中。
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.