void set(Vector3 origin, Vector3 direction) { // direction is assumed to be normalized (for accurate distance calculations) ray.set(origin, direction); }