I'm trying to create an arcade game, where a ball moves at a constant speed and is unaffected by gravity or friction. So I created the ball as an SKShapeNode
and set its linearDamping
and friction
to 0
. I also set the game scene to have no gravity. But when playing, if the ball hits another shape node (a circle) at a low angle, it can slow down. The ball's restitution
is 1
, and allowsRotation
is false
.
I am keeping the ball moving by applying one impulse at the beginning of the game, that is a random direction.