This repository has been archived by the owner on Jun 16, 2023. It is now read-only.
Gestures #51
Answered
by
rezaali
memetsumer
asked this question in
Q&A
Gestures
#51
-
Hey, this is such a fantastic library! I hope to learn more about Metal and how they interop with Swift thanks to your work. Can you help me with how I can add gestures to objects? |
Beta Was this translation helpful? Give feedback.
Answered by
rezaali
Dec 13, 2022
Replies: 1 comment 1 reply
-
@memetsumer thank you! So if you want an object to be draggable when you tap and drag it you can raycast the scene (Object) recursively and see what you hit. If you hit the object you're interested in then you can either move the object or camera, etc. check out Raycast.swift to see how to raycast a scene. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
rezaali
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@memetsumer thank you! So if you want an object to be draggable when you tap and drag it you can raycast the scene (Object) recursively and see what you hit. If you hit the object you're interested in then you can either move the object or camera, etc. check out Raycast.swift to see how to raycast a scene.