기술 자료

Unity Engine

Unity Engine

PhysicsQuery.CastRayInput

Cast-Ray arguments used by CastRay queries.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

public struct PhysicsQuery.CastRayInput

Constructors

Constructor

Description

CastRayInput()Create a default Cast Ray input.
CastRayInput(UnityEngine.Vector2,UnityEngine.Vector2)Create a Cast-Ray with a default fraction of 1.

Properties

Property

Description

maxFractionThe maximum fraction of the translation to consider in the range (0 to 1), typically 1.
originThe origin (start) of the ray.
translationThe translation relative to the PhysicsQuery.CastRayInput.origin of the ray.

Static Methods

Method

Description

FromToCalculate a Cast-Ray given two positions.