getRayCollisionSphere function

RayCollision getRayCollisionSphere(
  1. Ray ray,
  2. Vector3 center,
  3. double radius
)

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,
    ),
  );
}