Physics Engine
Physics Simulation
- Sprite kit manages synchronization details
- Physic-enabled nodes + no-physic nodes
SKPhysicsBody
- Multiple types of
shape:
- Circle
- Rectangle
- EdgeLoopFromRect
- Edge
- Polygon
- EdgeChain
- EdgeLoopFromPath
- Directly set to SKNodeās property
SKPhysicsWorld
- Combine with SKScene
- Has gravity property
- Manage collision details
Collisions
- SKPhysicsContactDelegate & SKPhysicsContact used to detect collisions
- collisionBitMask can be used to create groups
- Previous
- Next