getRayCollisionSphere function
Get collision info between ray and sphere.
Implementation
RayCollision getRayCollisionSphere(Ray ray, Vector3 center, double radius) {
return RayCollision.fromRef(
library.GetRayCollisionSphere(
ray.ref,
center.ref,
radius,
),
);
}