CastRayInput
Create a default Cast Ray input.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Constructor
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
CastRayInput()
Create a default Cast Ray input.
public CastRayInput()
CastRayInput(Vector2, Vector2)
Create a Cast-Ray with a default fraction of 1.
public CastRayInput(Vector2 origin, Vector2 translation)
Parameters
The origin (start) of the ray.
The translation relative to the PhysicsQuery.CastRayInput.origin of the ray.