Hi, I was debugging some code and stumbled upon Ray.TransformToRef and I noticed probably a bug?
The result ray's direction is never normalized unless I'm mistaken.
public static TransformToRef(ray: Ray, matrix: Matrix, result:Ray): void {
Vector3.TransformCoordinatesToRef(ray.origin, matrix, result.origin);
Vector3.TransformNormalToRef(ray.direction, matrix, result.direction);
// This should be result.direction.normalize(); ?
ray.direction.normalize();
}