Skip to content

Question: How to get the coordinates of the fingertip in 6.X #1333

Answered by MattGrayUL
yukitatsuta asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @yukitatsuta

The API documentation you have linked is out of date as it is on the older Leap Motion site (I will look to make this more clear in future) the updated version of the page you referenced is here

As we moved the Unity Plugin to 6.0 we changed the format that our Frame data has. We stopped using our own Vector and began using Unitys built-in Vector3. We have some documentation on this available here

With your code, you would change Vector for Vector3 and your code should continue to work. I would also recommend referencing a specific LeapProvider, rather than creating a Controller yourself (the LeapProviders handle that for you)

Here is an example using your code as a base …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yukitatsuta
Comment options

Answer selected by yukitatsuta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants