Sphere Overlap

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

Use a static spherical area for detection and return all entities in the spherical area. If the level parameter is filled in, the terrain can be detected.

Declaración

func SphereOverlap(radius float, center Vector3, layerMask List<int>, includeTrigger bool, out var hitEntities List<entity<Entity>>)
go

Parámetros

Entrada

Nombre Tipo Descripción
Radius Float Spherical region radius, only positive values are accepted
Center Vector3 Center point of spherical area
Layer Mask ListT_int Layer mask, only the filled layers will participate in the scan, leaving it blank means all layers will participate in the scan
Include Trigger Bool Whether the trigger can be detected

Afuera

Nombre Tipo Descripción
Hit Entities ListT_Entity List of entities hit