Moving a ball with constant velocity
I tried to make a box of balls where the balls move with constant velocity. The shouldn't slow down when they collide with each other. I think I have set all properties right but it didn't work and after 30s all of the balls stopped to move.
The box is set like this:
self.physicsBody = SKPhysicsBody(edgeLoopFromRect: self.frame)
self.physicsBody.dynamic = false
self.physicsBody.restitution = 1
self.physicsBody.friction = 0
The balls are set like this:
Is this a bug of the physics engine or am I missing something?