如何让SKPhysicsBody像iOS7 SpriteKit中的球一样反弹?

Kru*_*lur 4 objective-c ios7 sprite-kit

我已经设置了我的场景以包含一个边缘循环和一个球形物体,该物体应该下降然后反弹直到它的所有能量消失.然而,我似乎无法在SpriteKit中获得物理学以最大限度地减少恢复原状.球总是下降并反弹回来只有几个像素.

我的参数是:

  • 世界重力= -4f
  • 球体=圆形,半径为框架宽度的一半
  • 恢复原状= 0f
  • 摩擦= 0f

I tweaked already gravity, mass of the ball and all other properties. My last idea is to apply a force to the ball as soon as it hits one of the borders but that just feels wrong. I should be able to simulate a bouncing ball.

Kru*_*lur 5

愚蠢的我.归还0表示:根本没有弹性.值"1"表示"超级有弹性".