Skip to contents

Check collision between two spheres.

Usage

check_collision_spheres(center1, radius1, center2, radius2)

Arguments

center1

A numeric vector of length 3.

radius1

A number.

center2

A numeric vector of length 3.

radius2

A number.

Value

A logical

Note

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

bool CheckCollisionSpheres(Vector3 center1, float radius1, Vector3 center2, float radius2);

Examples

check_collision_spheres(c(0, 0, 0), 50.0, c(0, 0, 0), 50.0)
#> [1] TRUE