Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

SpriteKit itself isn't a physics engine, it comes with one Also, the Physics Engine isn't 'similar' to Box 2D - it _IS_ Box 2D with an OBJ-C wrapper.

Same thing applies to UIKit Dynamics, except it plays along with UIKit stuff.



Yes, that's what I meant when I said SpriteKit contains an engine similar to Box 2D. I thought my comment was reasonably clear about SpriteKit not just being the physics engine.

According to my tests it is not Box 2D, it produces significantly different results and only implements a subset of functionality. I've been told by others with more experience that it isn't Box 2D also, but if you have more information I'd like to know for sure.


The SpriteKit physics engine uses Box2D internally. Here is a dump of the SpriteKit framework:

https://ghostbin.com/paste/tm4ko

b2* shows up in there many times.

edit: slow pony


Thanks for that, that's really interesting. It behaved differently in my experiments so I assumed it wasn't the same — but it must just be a different configuration.


If you look at this dump, you can see references to b2World, b2Body etc, https://ghostbin.com/paste/tm4ko




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: