Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Individual particles and physics in Sprite Kit

I am a long time user of Stackoverflow but first post.

My question is seemingly simple, is there a way to make particles from an emitter interact with the physics sprites in the scene? (For example, if I am using a particle for rain, and I want it to bounce or bumpy off a sprite of a man with an umbrella. There must be a way, but I don't see a lot of documentation on adding physics to individual particles. Any ideas?

Thanks!

like image 507
user2090857 Avatar asked Nov 12 '13 15:11

user2090857


1 Answers

No. There is no way to make SpriteKit's built in particles interact with physics bodies. Every particle property you can control is a property of SKEmitterNode, and it has no properties for setting physics behavior for particles.

The fact is that particles are designed to be very light-weight so that you can have thousands of them on any hardware supported by SpriteKit. Physics simulation is not light-weight.

like image 134
rob mayoff Avatar answered Oct 02 '22 14:10

rob mayoff