Search code examples
swift3dsprite-kitcollada

SpriteKit generate 3D objects


I'm trying to add an animation with a cube (3D object) in a SpriteKit Swift (game) application.

I havent find anything concrete regarding how to generate 3D objects using SK. I need some examples as a start point.


Solution

  • SKNode has a subclass SK3DNode, which renders the 3D content of a Scene Kit scene as a 2D texture, i.e you need to use Scene Kit for the 3D animation. Other than that, Sprite Kit framework reference doesn't cover subjects relating to 3D rendering.