Cannot convert value of type 'SCNMatrix4' to expected argument type 'matrix_float4x4' (aka 'simd_float4x4')

Viewed 6530

I got this error while using iOS 11 ARKit(Scenekit - Xcode 9 beta) when i try to set the simdPosition of virtual object. I need to know if it is possible to convert SCNMatrix4 to matrix_float4x4 in swift. If so how to convert it.

3 Answers

Objective-C has the same method:

[self.sceneView.session setWorldOrigin:SCNMatrix4ToMat4(node.pivot)];
Related