How can I stop a sprite after it has been applied an impulse like this:
player.physicsBody!.applyImpulse(CGVectorMake(50, 0))
And is it possible to make the movement decrease over a time period? (2 seconds)
How can I stop a sprite after it has been applied an impulse like this:
player.physicsBody!.applyImpulse(CGVectorMake(50, 0))
And is it possible to make the movement decrease over a time period? (2 seconds)