Place cube in scene

Share on Twitter Share on Facebook Share on LinkedIn

Place cube in scene

Description

We will place a cube into the scene.

We do this by creating a class that inherits from SCNNode then declaring its size, colour and position before creating a SCNBox Geometry and adding it to the scene.

Note, that the Position you provide is relative to the World Origin wich is at 0,0,0 (x,y,z)


Video

No video yet


Code


Next Step : Place sphere in scene

After you have mastered this you should try Place sphere in scene