Version: Unity 6.3 Beta (6000.3)
LanguageEnglish
  • C#

CastRayInput

struct in UnityEngine.LowLevelPhysics2D

/

Implemented in:UnityEngine.Physics2DModule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Cast-Ray arguments used by CastRay queries.

Properties

Property Description
maxFraction The maximum fraction of the translation to consider in the range (0 to 1), typically 1.
origin The origin (start) of the ray.
translation The translation relative to the CastRayInput.origin of the ray.

Constructors

Constructor Description
PhysicsQuery.CastRayInput Create a default Cast Ray input.

Static Methods

Method Description
FromTo Calculate a Cast-Ray given two positions.