Closed g-rodigy closed 3 months ago
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.
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: directionVectorX = B.X - A.X directionVectorY = B.Y - A.Y directionVectorZ = B.Z - A.Z
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