Closed Artyom17 closed 4 years ago
The Ray ctor should get a matrix, not RigidTransform.
It might be worth noting that this makes Ray incompatible with the planned XRRay (https://github.com/immersive-web/hit-test/blob/master/hit-testing-explainer.md).
The Ray ctor should get a matrix, not RigidTransform. Current logic produces a lot of NaNs and this may cause rendering artefacts. Also, ray.origin and direction do not have x,y,z members.