Is Inside Sphere

Physics
Tanto lado del cliente como del usuario
Disponible en PC y móvil

Determines whether the target entity is within the specified sphere. If the entity has no position attribute, it will return false.

Declaración

func IsInsideSphere(target entity, center Vector3, radius float) bool
go

Parámetros

Entrada

Nombre Tipo Descripción
Target entity Target Entity
Center Vector3 Specify the center of a sphere
Radius Float Specify the radius of a sphere

Regresar

Tipo Descripción
Bool Determination result