How can I give an SkSpriteNode an initial push?

I have an SkSpriteNode (ball) in a box. Gravity is set to false, otherwise it has an SkPhysicsBody to bounce off of walls.

Is there a method to give the ”ball” an initial push in a specified direction and velocity/strength wise?

Answered by OOPer in 689917022

You should better check SKActions.

Maybe applyForce or applyImpulse is the one you want.

Accepted Answer

You should better check SKActions.

Maybe applyForce or applyImpulse is the one you want.

How can I give an SkSpriteNode an initial push?
 
 
Q