文档

Unity Engine

Unity Engine

FromTo(Vector2, Vector2)

Calculate a Cast-Ray given two positions.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public static PhysicsQuery.CastRayInput FromTo(Vector2 from, Vector2 to)

Parameters

The position the ray starts.

The position the ray ends.

Returns

Type

Description

CastRayInput