Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在做一个无限的跑步者,但是当我跑步时,我的角色有点在地板上。我使用模板“无限运行”创建了一个新项目,然后更改了播放器图形。来自调试器的图片:
http://imgur.com/UKyssxq
您可以尝试将精灵/动画的原点移动到精灵的底部和/或您可以为玩家使用不可见的虚拟精灵/对象,然后将实际的玩家精灵固定到它上面。这样,碰撞将表现得更可预测。