In XRRay section, it isn't mentioned how XRRay.matrix should be initialized for XRRay(transform) while it's mentioned for XRRay(origin, direction) "Initialize ray’s matrix to null".
How should it be initialized for XRRay(transform)? Copy transform.matrix? Or set null and lazily generate as XRRay(origin, direction) does?
In
XRRay
section, it isn't mentioned howXRRay.matrix
should be initialized forXRRay(transform)
while it's mentioned forXRRay(origin, direction)
"Initialize ray’s matrix to null".How should it be initialized for
XRRay(transform)
? Copytransform.matrix
? Or setnull
and lazily generate asXRRay(origin, direction)
does?