I'm trying to make a 3D game in Swift. I want my enemy to follow a path using a GKGoal. The GKAgent3D has a rotation property type matrix_float3x3, but the SCNNode's rotation property is type SCNVector4.
How can I convert matrix_float3x3 to SCNVector4 using simple swift?
I already search the web, but there is almost none documentation about using GameplayKit with SceneKit, or the GKAgent3D.
I found some math documentation and functions for matrix rotations and angles (for example: Decomposing and composing a 3×3 rotation matrix), but this returns me the XYZ angles for a SNVector3, not SNVector4.