Version: 2022.2

Physics2D.queriesStartInColliders

切换到手册
public static bool queriesStartInColliders ;

描述

Set the raycasts or linecasts that start inside Colliders to detect or not detect those Colliders.

When performing a ray/line cast, the start point can begin inside a Collider. When this occurs, this property controls whether these Colliders are returned or not. When set to true, such Colliders are returned.

另请参阅:RaycastLinecast