ARKit placing objct on a plane

Viewed 1521

I'm learning from a tutorial online on ARKit to place an object on a plane.

boxNode.position = SCNVector3(hitResult.worldTransform.columns.3.x,hitResult.worldTransform.columns.3.y + Float(boxGeometry.height/2), hitResult.worldTransform.columns.3.z)

he uses the code above to place it at the location where you tap on the screen

what does this mean:

hitResult.worldTransform.columns.3.x

why is it columns.3 and not columns.0 for example?

2 Answers
Related