Skip to contents

Check collision between box and sphere.

Usage

check_collision_box_sphere(box, center, radius)

Arguments

box

A bounding_box.

center

A numeric vector of length 3.

radius

A number.

Value

A logical

Note

This function has been auto-generated from the following Raylib function definition:

bool CheckCollisionBoxSphere(BoundingBox box, Vector3 center, float radius);

Examples

check_collision_box_sphere(bounding_box(c(-1, -1, -1), c(1, 1, 1)), c(0, 0, 0), 50.0)
#> [1] TRUE