기술 자료

Unity Engine

Unity Engine

CastRay(CastRayInput, out PhysicsShape)

Check if a ray intersects the chain. See PhysicsQuery.CastResult.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

CastRay(CastRayInput, PhysicsShape)

public PhysicsQuery.CastResult CastRay(PhysicsQuery.CastRayInput castRayInput, out PhysicsShape chainSegmentShape)

Parameters

castRayInput

The configuration of the ray to cast.

chainSegmentShape

A reference to the chain segment shape that the query found.

Returns

Type

Description

CastResultThe intersection details, if any, that were found.