ARKitSceneKitExample icon indicating copy to clipboard operation
ARKitSceneKitExample copied to clipboard

MOve 3d Object

Open athiselvam opened this issue 7 years ago • 5 comments

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

athiselvam avatar Dec 15 '17 10:12 athiselvam

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.

eh3rrera avatar Dec 15 '17 12:12 eh3rrera

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.

athiselvam avatar Dec 15 '17 12:12 athiselvam

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

eh3rrera avatar Dec 15 '17 19:12 eh3rrera

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?

Zanbrachrissik avatar Jan 09 '19 14:01 Zanbrachrissik

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

eh3rrera avatar Jan 09 '19 15:01 eh3rrera