Imported a tiger model into SceneKit, but it is off center? Is this something I can fix? The green/red/blue arrows should be under the model?
2
you can use yourEntity.position = SIMD3(x: 0, y: 0, z: 0)
yourEntity.position = SIMD3(x: 0, y: 0, z: 0)
or set the position with editor
To reposition model’s pivot point in SceneKit, use the following code:
node.simdPivot.columns.3.x node.simdPivot.columns.3.y node.simdPivot.columns.3.z
If you wanna know more about 4×4 matrices, read this post.
Click here to cancel reply.
2
Answers
you can use
yourEntity.position = SIMD3(x: 0, y: 0, z: 0)
or set the position with editor
To reposition model’s pivot point in SceneKit, use the following code:
If you wanna know more about 4×4 matrices, read this post.