ドキュメント

Unity Engine

Unity Engine

CastRay(CastRayInput)

Check if a ray intersects the shape. See PhysicsQuery.CastResult.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public PhysicsQuery.CastResult CastRay(PhysicsQuery.CastRayInput castRayInput)

Parameters

castRayInput

The configuration of the ray to cast.

Returns

Type

Description

CastResultThe intersection details, if any, that were found.