Documentation

Unity Engine


Unity Engine


FromTo(Vector2, Vector2)

Calculate a Cast-Ray given two positions.
Read time 1 minuteLast updated a month ago

Definition

public static PhysicsQuery.CastRayInput FromTo(Vector2 from, Vector2 to)

Parameters

The position the ray starts.

The position the ray ends.

Returns

Type

Description

CastRayInput