-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ray pick don't work in different directions #1494
Comments
Hey, just to make sure: isn't it null, because you switched origin point with direction vector? It should work if there will be start and end point, but it looks to me, that there is a starting point and direction vector instead. |
So, looks like I misunderstood. But if I have 2 points need get direction from one to other. Could you provide some small example? |
Direction vector from point A to B is a B - A, meaning: from this you should be able to create directionVector = [directionVectorX, directionVectorY, directionVectorZ] |
Describe the bug
Based on example pick_ray_surface, test some case, code below. Ray pick does not work in same conditions.
To Reproduce
Expected behavior
Will return pickResult on both variants.
Desktop (please complete the following information):
Additional context
Xeokit-sdk version v2.6.9
The text was updated successfully, but these errors were encountered: