电晕粗糙面:摩擦
我想制作一个粗糙的表面,当球滚过它时,球会很快停止。 (就像一个沉重的钢球在沙子上滚动)
我尝试将球和表面的摩擦力设置为 1.0,并且我尝试为两者设置更高的密度,但这似乎不是我想要的,球只有撞到东西才会停下来,否则,它只会在表面继续滚动。 (虽然很慢,但我希望它在 2 秒内停止)。
I want to make a rough surface, which when a ball roll over it, the ball will stop very quick. (like a heavy steel ball rolling on some sand)
I have try to set friction to 1.0 for both the ball and the surface, and I have tried to set higher density for both, but it just doesn't seem like what I want, the ball will stop only if it hit something, else, it will just keep rolling at the surface. (although is slow, but I want it stop like within 2sec).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
引用自:
http://developer.anscamobile.com/content/game-edition-physicals-bodies
“摩擦力可以是任何非负值;0 表示没有摩擦力,1.0 表示相当强的摩擦力。默认值为 0.3。”
将其设置为 100,看看会发生什么
To quote from:
http://developer.anscamobile.com/content/game-edition-physics-bodies
"friction may be any non-negative value; a value of 0 means no friction and 1.0 means fairly strong friction. The default value is 0.3."
set it to 100, see what happens