ドキュメント

Unity Engine

Unity Engine

TestOverlapShape(PhysicsShape, QueryFilter)

Tests if the provided shape overlaps any shapes. The selected shape is excluded from any results and must be in this world otherwise a warning will be produced.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public bool TestOverlapShape(PhysicsShape shape, PhysicsQuery.QueryFilter filter)

Parameters

The shape used to check overlap.

The filter to control the result returned.

Returns

Type

Description

boolIf the query overlaps anything.