文档

Unity Engine

Unity Engine

CastShape(CastShapeInput)

Calculate if a cast shape intersects the geometry. Initially touching shapes are treated as a miss. You should check for overlap first if initial overlap is required. See PhysicsQuery.CastShapeInput and PhysicsQuery.CastResult.
阅读时间1 分钟最后更新于 1 个月前

Definition

public readonly PhysicsQuery.CastResult CastShape(PhysicsQuery.CastShapeInput input)

Parameters

The cast shape input used to check for intersection.

Returns

Type

Description

CastResultThe results of the intersection test.