eh3rrera / ARKitSceneKitExample

Simple AR app made with ARKit and SceneKit
MIT License
56 stars 10 forks source link

MOve 3d Object #2

Open athiselvam opened 6 years ago

athiselvam commented 6 years ago

How to move to this 3D object in real world?

eh3rrera commented 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.

athiselvam commented 6 years ago

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.

eh3rrera commented 6 years ago

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

Zanbrachrissik commented 5 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.

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?

eh3rrera commented 5 years ago

Yes, it gets bigger: https://www.youtube.com/watch?v=-o7qr1NpeNI