Open athiselvam opened 6 years ago
Hi, sorry I don't think I understand your question.
Once you put a 3D object in the scene, its position is fixed. But you can move it programmatically by changing either the position or transformation attributes on the SCNNode.
How do I move, rotate and scale based on touch action in a 3D object?
Can you alter this example to move the object in real time, and rotate the object using two fingers touch. Scale the 3D object's width and height.
Sorry, I don't have time to modify this project. I'll consider making a tutorial about how to do that in the future.
I think the official Apple's demo has some code to handle one and two fingers gestures in ARKit: https://developer.apple.com/sample-code/wwdc/2017/PlacingObjects.zip
Hi, sorry I don't think I understand your question.
Once you put a 3D object in the scene, its position is fixed. But you can move it programmatically by changing either the position or transformation attributes on the SCNNode.
Does this mean that if I move my camera towards the 3D object, it gets bigger? Or the distance between the camera and the 3D object is fixed?
Yes, it gets bigger: https://www.youtube.com/watch?v=-o7qr1NpeNI
How to move to this 3D object in real world?