3 ms·
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 thin
by seivan 13y ago
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.
- interpol_p 13y agoYes, 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.
- ceve 13y agoIf you look at this dump, you can see references to b2World, b2Body etc, https://ghostbin.com/paste/tm4ko https://ghostbin.com/paste/tm4ko
- cncool 13y agoThe SpriteKit physics engine uses Box2D internally. Here is a dump of the SpriteKit framework: https://ghostbin.com/paste/tm4ko https://ghostbin.com/paste/tm4ko b2* shows up in there many times. edit: slow pony
- interpol_p 13y agoThanks 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.